leb128-0.1.0.0: LEB128 encoding logic for and in Haskell

Copyright(c) Andreas Klebinger 2020
LicenseBSD3
MaintainerAndreas Klebinger
PortabilityGHC >= 7.10
Safe HaskellNone
LanguageHaskell2010

Codec.LEB128.List

Description

The implementation is backed by the generic algorithms defined in Codec.LEB128.Generic.

The code is quite fast but does not fuse.

Synopsis

Documentation

fromULEB128 :: LEB128 a => [Word8] -> (a, [Word8]) Source #

Decode a unsigned value from LEB128 encoding.

fromSLEB128 :: SLEB128 a => [Word8] -> (a, [Word8]) Source #

Decode a signed value from SLEB128 encoding.

toULEB128 :: LEB128 a => a -> [Word8] Source #

Encode a unsigned value in LEB128.

toSLEB128 :: SLEB128 a => a -> [Word8] Source #

Encode a signed value in LEB128.