read

abstract fun read(    buffer: ByteArray,     offsetInBytes: Int,     sizeInBytes: Int): Int

Return

int zero or the positive number of bytes that were read, or negative number if error.

See also

Parameters

buffer

the byte array into which the data is read.

offsetInBytes

the start offset in data

sizeInBytes

the maximum number of bytes to read


abstract fun read(buffer: ByteBuffer, sizeInBytes: Int): Int

Return

int zero or the positive number of bytes that were read, or negative number if error.

See also

Parameters

buffer

the byte buffer into which the data is read.

sizeInBytes

the maximum number of bytes to read