License | BSD-style |
---|---|
Maintainer | Vincent Hanquez <vincent@snarc.org> |
Stability | experimental |
Portability | Good |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Fast serialization primitives for integer
Documentation
i2osp :: ByteArray ba => Integer -> ba Source #
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 Source #
os2ip
converts a byte string into a positive integer.