ByteArrayBuilder
Analogous to StringBuilder but for ByteArray. Allows to append values to end calling toByteArray. Provides some methods like s16LE or f32BE to append specific bit representations easily.
Properties
Functions
Appends an 8-bits byte v to the buffer
Appends a byte v to the buffer
Clears/resets this ByteArrayBuilder
Appends a 32-bit Float v to the buffer in big-endian
Appends a 32-bit Float v to the buffer in little-endian
Appends a 64-bit Double v to the buffer in big-endian
Appends a 64-bit Double v to the buffer in little-endian
Appends a 16-bit v to the buffer in big-endian
Appends a 16-bit v to the buffer in little-endian
Appends a 24-bit integer v to the buffer in big-endian
Appends a 24-bit integer v to the buffer in little-endian
Appends a 32-bit Int v to the buffer in big-endian
Appends a 32-bit Int v to the buffer in little-endian
Appends an 8-bits byte v to the buffer
Converts this ByteArrayBuilder to a ByteArray with the current size