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

build

@Synchronized fun build(): ByteArray

Copies the contents of the buffer to a new ByteArray and returns the new array.

Return
New ByteArray instance containing contents of the buffer.