License | BSD-style |
---|---|
Maintainer | Vincent Hanquez <vincent@snarc.org> |
Stability | experimental |
Portability | Good |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Fast serialization primitives for integer (little endian)
Documentation
i2osp :: ByteArray ba => Integer -> ba Source #
i2osp
converts a positive integer into a byte string.
The first byte is LSB (least significant byte); the last byte is the MSB (most significant byte)
os2ip :: ByteArrayAccess ba => ba -> Integer Source #
os2ip
converts a byte string into a positive integer.