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