tuweni / org.apache.tuweni.bytes / Bytes / appendTo

appendTo

open fun appendTo(byteBuffer: ByteBuffer!): Unit (source)

Append the bytes of this value to the ByteBuffer.

Parameters

byteBuffer - ByteBuffer!: The ByteBuffer to which to append this value.

Exceptions

BufferOverflowException - If the writer attempts to write more than the provided buffer can hold.

ReadOnlyBufferException - If the provided buffer is read-only.

open fun appendTo(buffer: Buffer!): Unit (source)

Append the bytes of this value to the provided Vert.x Buffer.

Note that since a Vert.x Buffer will grow as necessary, this method never fails.

Parameters

buffer - Buffer!: The Buffer to which to append this value.