target: add function to get number of bytes available in working area