writeFully

fun Buffer.writeFully(
    source: ByteArray,
    offset: Int = 0,
    length: Int = source.size - offset
): Unit
fun Buffer.writeFully(
    source: <ERROR CLASS>,
    offset: Int = 0,
    length: Int = source.size - offset
): Unit

Write the whole source array range staring at offset and having the specified bytes length.

inline fun IoBuffer.writeFully(
    source: ByteArray,
    offset: Int = 0,
    length: Int = source.size - offset
): Unit

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

fun Output.writeFully(
    src: ByteArray,
    offset: Int = 0,
    length: Int = src.size - offset
): Unit
fun Output.writeFully(
    src: ShortArray,
    offset: Int = 0,
    length: Int = src.size - offset
): Unit
fun Output.writeFully(
    src: IntArray,
    offset: Int = 0,
    length: Int = src.size - offset
): Unit
fun Output.writeFully(
    src: LongArray,
    offset: Int = 0,
    length: Int = src.size - offset
): Unit
fun Output.writeFully(
    src: FloatArray,
    offset: Int = 0,
    length: Int = src.size - offset
): Unit
fun Output.writeFully(
    src: DoubleArray,
    offset: Int = 0,
    length: Int = src.size - offset
): Unit
fun Output.writeFully(
    src: IoBuffer,
    length: Int = src.readRemaining
): Unit

Deprecated: Binary compatibility.

fun Output.writeFully(
    src: Buffer,
    length: Int = src.readRemaining
): Unit
fun Output.writeFully(
    src: Memory,
    offset: Int,
    length: Int
): Unit
fun Output.writeFully(
    src: Memory,
    offset: Long,
    length: Long
): Unit
@ExperimentalUnsignedTypes inline fun Output.writeFully(
    array: <ERROR CLASS>,
    offset: Int = 0,
    length: Int = array.size - offset
): Unit
fun Output.writeFully(bb: ByteBuffer): Unit
fun Buffer.writeFully(
    source: ShortArray,
    offset: Int = 0,
    length: Int = source.size - offset
): Unit
fun Buffer.writeFully(
    source: IntArray,
    offset: Int = 0,
    length: Int = source.size - offset
): Unit
fun Buffer.writeFully(
    source: LongArray,
    offset: Int = 0,
    length: Int = source.size - offset
): Unit
fun Buffer.writeFully(
    source: FloatArray,
    offset: Int = 0,
    length: Int = source.size - offset
): Unit
fun Buffer.writeFully(
    source: DoubleArray,
    offset: Int = 0,
    length: Int = source.size - offset
): Unit

Write the whole source array range staring at offset and having the specified items length. Numeric values are interpreted in the network byte order (Big Endian).

fun Buffer.writeFully(src: Buffer): Unit

Write all readable bytes from src to this buffer. Fails if not enough space available to write all bytes.

fun Buffer.writeFully(src: Buffer, length: Int): Unit

Write at most length readable bytes from src to this buffer. Fails if not enough space available to write all bytes.

fun Buffer.writeFully(source: ByteBuffer): Unit

Write source buffer content moving it’s position.

fun BytePacketBuilder.writeFully(src: ByteBuffer): Unit

Deprecated: Should be resolved to member function instead

Write all src buffer remaining bytes and change it’s position accordingly