small-bytearray-builder v0.3.0.0 Release Notes

Release Date: 2019-10-17 // over 4 years ago
    • ๐Ÿ’ฅ Breaking change: Change the internal implementation of Builder. This now works a lot more like the builder from bytestring. It accumulates chunks and can do a zero-copy appends when working with a sufficiently large immutable chunk. This introduces a mild performance regression (around 10%), but it makes the libary more generally useful.
    • Introduce consLengthBE32 and consLength64BE for efficient serialization of wire protocols that require prefixing a payload with its length.
    • โž• Add int{16,32,64}BE and int{16,32,64LE} as conveniences.
    • โž• Add little-endian encoding functions for Word16, Word32, and Word64.
    • โž• Add big-endian and little-endian functions for copying a PrimArray of numbers (both signed and unsigned) into a builder.
    • โž• Add flush, copy, and insert for better control when converting byte sequences to builders.
    • โž• Add shortByteString to improve interoperability with the bytestring library.