Safe Haskell | Safe-Infered |
---|
Number.Serialize
- i2osp :: Integer -> ByteString
- os2ip :: ByteString -> Integer
- lengthBytes :: Integer -> Int
Documentation
i2osp :: Integer -> ByteStringSource
i2osp converts a positive integer into a byte string
os2ip :: ByteString -> IntegerSource
os2ip converts a byte string into a positive integer
lengthBytes :: Integer -> IntSource
returns the number of bytes to store an integer with i2osp