library / org.akop.kotx.tools.basic / ByteArrayBuilder / append

append

@Synchronized fun append(byte: Byte): Unit

Appends a single byte to the buffer.

Parameters

byte - Value to append to buffer.

@Synchronized fun append(array: ByteArray, srcRange: IntRange = array.indices): Unit

Appends a byte array to the buffer, optionally by only copying a section of it as specified by srcRange.

Parameters

array - ByteArray (or part thereof) to append.

srcRange - (optional) Section of the array to append.