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 Source #
i2osp converts a positive integer into a byte string
first byte is MSB (most significant byte), last byte is the LSB (least significant byte)
os2ip :: ByteArrayAccess ba => ba -> Integer Source #
os2ip converts a byte string into a positive integer