ByteArrayBuilder

class ByteArrayBuilder(initialCapacity: Int = 64)(source)

A growable byte buffer for encoders. Methods chain; toByteArray returns a copy of what was written.

Constructors

Link copied to clipboard
constructor(initialCapacity: Int = 64)

Properties

Link copied to clipboard
var size: Int

Functions

Link copied to clipboard
Link copied to clipboard
fun appendBigEndian(value: Long, byteCount: Int): ByteArrayBuilder

Appends the low byteCount bytes of value, most significant first.

Link copied to clipboard