Copyright | (c) Andreas Klebinger 2020 |
---|---|
License | BSD3 |
Maintainer | Andreas Klebinger |
Portability | GHC >= 7.10 This module specializes the generic algorithms defined in "Codec.LEB128.Generic" to use ByteString as byte sequence representation. |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- fromULEB128 :: forall a. LEB128 a => ByteString -> (Maybe a, ByteString)
- fromSLEB128 :: forall a. SLEB128 a => ByteString -> (Maybe a, ByteString)
- fromULEB128Unsafe :: LEB128 a => ByteString -> (a, ByteString)
- fromSLEB128Unsafe :: SLEB128 a => ByteString -> (a, ByteString)
- toULEB128 :: LEB128 a => a -> Builder
- toSLEB128 :: SLEB128 a => a -> Builder
Documentation
fromULEB128 :: forall a. LEB128 a => ByteString -> (Maybe a, ByteString) Source #
Decode a value in unsigned LEB128 encoding and return remaining bytes.
fromSLEB128 :: forall a. SLEB128 a => ByteString -> (Maybe a, ByteString) Source #
Decode a value in (signed) SLEB128 encoding and return remaining bytes.
fromULEB128Unsafe :: LEB128 a => ByteString -> (a, ByteString) Source #
Decode a value in unsigned LEB128 encoding and return remaining bytes.
fromSLEB128Unsafe :: SLEB128 a => ByteString -> (a, ByteString) Source #
Decode a value in (signed) SLEB128 encoding and return remaining bytes.