readFully
inline fun IoBuffer.readFully(
destination: ByteArray,
offset: Int = 0,
length: Int = destination.size - offset
): Unit
Deprecated: IoBuffer is deprecated. Use Memory or Input instead.
Deprecated: Binary compatibility.
fun Input.readFully(
dst: ShortArray,
offset: Int = 0,
length: Int = dst.size - offset
): Unit
fun Input.readFully(
dst: FloatArray,
offset: Int = 0,
length: Int = dst.size - offset
): Unit
fun Input.readFully(
dst: DoubleArray,
offset: Int = 0,
length: Int = dst.size - offset
): Unit
@ExperimentalUnsignedTypes inline fun Input.readFully(
dst: <ERROR CLASS>,
offset: Int = 0,
length: Int = dst.size - offset
): Unit
fun Input.readFully(
dst: ByteBuffer,
length: Int = dst.remaining()
): Unit
fun Buffer.readFully(dst: ByteBuffer, length: Int): Unit
fun Buffer.readFully(
destination: ByteArray,
offset: Int = 0,
length: Int = destination.size - offset
): Unit
fun Buffer.readFully(
destination: <ERROR CLASS>,
offset: Int = 0,
length: Int = destination.size - offset
): Unit
Read from this buffer to the destination array to offset and length bytes.
fun Buffer.readFully(
destination: ShortArray,
offset: Int = 0,
length: Int = destination.size - offset
): Unit
fun Buffer.readFully(
destination: IntArray,
offset: Int = 0,
length: Int = destination.size - offset
): Unit
fun Buffer.readFully(
destination: LongArray,
offset: Int = 0,
length: Int = destination.size - offset
): Unit
fun Buffer.readFully(
destination: FloatArray,
offset: Int = 0,
length: Int = destination.size - offset
): Unit
fun Buffer.readFully(
destination: DoubleArray,
offset: Int = 0,
length: Int = destination.size - offset
): Unit
Read from this buffer to the destination array to offset and length bytes. Numeric values are interpreted in the network byte order (Big Endian).
fun Buffer.readFully(destination: ByteBuffer): Unit
Read buffer’s content to the destination buffer moving it’s position.
fun ByteReadPacket.readFully(dst: ByteBuffer): Int
Read exactly dst.remaining()
bytes to the specified dst byte buffer and change it’s position accordingly
Return number of bytes copied