gleb128

GLEB128 is a small Gleam library that provides functions for encoding and decoding LEB128 (Little Endian Base 128) integers.

MIT License

Stars
2
Committers
1
gleb128 - v2.1.0 - 2024/09/11 Latest Release

Published by BrendoCosta about 2 months ago

  • Added support for building for JavaScript targets.

Full Changelog: https://github.com/BrendoCosta/gleb128/compare/v2.0.1...v2.1.0

gleb128 - v2.0.1 - 2024/09/04

Published by BrendoCosta about 2 months ago

Full Changelog: https://github.com/BrendoCosta/gleb128/compare/v2.0.0...v2.0.1

gleb128 - v2.0.0 - 2024/08/11

Published by BrendoCosta 3 months ago

  • All decoding functions now returns a tuple containing the decoded value in its first position, followed by the count of bytes read in its second position.
  • The decode_native_signed_integer, decode_native_unsigned_integer and get_cpu_endianness functions are now hidden from the library's public API;
  • Attempting to decode an invalid LEB128 integer will now return Error("Invalid LEB128 integer") instead of Error("Can't get the bit array slice");
  • The code coverage of unit tests has been improved;
  • Updated README.md usage guide;
  • Added CHANGELOG.md.

Full Changelog: https://github.com/BrendoCosta/gleb128/compare/v1.0.0...v2.0.0