@Synchronized fun append(byte: Byte): Unit
Appends a single byte to the buffer.
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.
array
- ByteArray (or part thereof) to append.