readAvailable
Read available for read bytes to the destination array range starting at array offset and length bytes. If less than length bytes available then less bytes will be copied and the corresponding number will be returned as result.
Return
number of bytes copied to the destination or -1
if the buffer is empty
Read available for read bytes to the destination array range starting at array offset and length elements. If less than length elements available then less elements will be copied and the corresponding number will be returned as result (possibly zero).
Return
number of elements copied to the destination or -1
if the buffer is empty, 0
- not enough bytes for at least an element
Read at most length available bytes to the dst buffer or -1
if no bytes available for read.
Return
number of bytes copied or -1
if empty
Read at most dst.remaining()
bytes to the specified dst byte buffer and change its position accordingly
Return
number of bytes copied