readFully

fun Buffer.readFully(
    dst: Array<Byte>,
    offset: Int = 0,
    length: Int = dst.size - offset
): Unit
inline fun IoBuffer.readFully(
    destination: ByteArray,
    offset: Int = 0,
    length: Int = destination.size - offset
): Unit

Deprecated: IoBuffer is deprecated. Use Memory or Input instead.

fun Input.readFully(
    dst: IoBuffer,
    size: Int = dst.writeRemaining
): Unit

Deprecated: Binary compatibility.

fun Input.readFully(
    dst: ByteArray,
    offset: Int = 0,
    length: Int = dst.size - offset
): Unit
fun Input.readFully(
    dst: ShortArray,
    offset: Int = 0,
    length: Int = dst.size - offset
): Unit
fun Input.readFully(
    dst: IntArray,
    offset: Int = 0,
    length: Int = dst.size - offset
): Unit
fun Input.readFully(
    dst: LongArray,
    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
fun Input.readFully(
    dst: Buffer,
    length: Int = dst.writeRemaining
): Unit
fun Input.readFully(
    destination: Memory,
    destinationOffset: Int,
    length: Int
): Unit
fun Input.readFully(
    destination: Memory,
    destinationOffset: Long,
    length: Long
): 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(
    dst: Buffer,
    length: Int = dst.writeRemaining
): Int

Read at most length bytes from this buffer to the dst buffer.

Return number of bytes copied

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