Fast LEB128 implementation in cython
Project description
LEB128
Cython implementation LEB128 varint serialization format.
Installation
pip install cyleb128
Example
from leb128 import LEB128S, LEB128U
# Signed integer
print(LEB128S.encode(-123))
print(LEB128S.decode(LEB128S.encode(-321)))
# Unsigned integer
print(LEB128U.encode(123))
print(LEB128U.decode(LEB128S.encode(123)))
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cyleb128-0.1.0.tar.gz
(42.0 kB
view hashes)