read

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

Return

the total number of bytes which read, or or -1 if cannot read anymore because of various reason.

Parameters

bytes

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(    byteBuffer: ByteBuffer,     offsetInBytes: Int,     sizeInBytes: Int): Int

Return

the total number of bytes which read, or or -1 if cannot read anymore because of various reason.

Parameters

byteBuffer

the byte buffer into which the data is read.

offsetInBytes

the start offset in data

sizeInBytes

the maximum number of bytes to read