Skip to content

Latest commit

 

History

History

brokkr-varint

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Brokkr-VarInt

BSD-3-Clause license

Fast and easy to use library for dealing with Minecrafts variable-length encoding.

Documentation

Contains two high level modules Brokkr.VarInt and Brokkr.VarLong which provide a newtype, a parser and a builder. Both these modules are documented and should be fairly straightforward to use.

Lower level methods are also exposed via Brokkr.VarInt.Encode and Brokkr.VarInt.Decode. These modules are also documented, but not as extensively.

Parser and Builder choice

Brokkr uses flatparse and mason everywhere. You are not forced to use the two, as the lower level api is independent, however it is highly recommended.

Contributing

Make sure the tests pass. Add one in case of a regression. And ensure the benchmarks don't regress.

Credits

Part of the implementation is derived from: