Data.ByteString.Encode
- Package
- purescript-bytestrings
- Repository
- rightfold/purescript-bytestrings
#int8be Source
int8be :: Int -> ByteString
Encode an integer of 8 bits in big-endian encoding. Extra bits will be discarded.
#int16be Source
int16be :: Int -> ByteString
Encode an integer of 16 bits in big-endian encoding. Extra bits will be discarded.
#int32be Source
int32be :: Int -> ByteString
Encode an integer of 32 bits in big-endian encoding.
#int8le Source
int8le :: Int -> ByteString
Encode an integer of 8 bits in little-endian encoding. Extra bits will be discarded.
#int16le Source
int16le :: Int -> ByteString
Encode an integer of 16 bits in little-endian encoding. Extra bits will be discarded.
#int32le Source
int32le :: Int -> ByteString
Encode an integer of 32 bits in little-endian encoding.
#uint8be Source
uint8be :: Int -> ByteString
Encode an integer of 8 bits in big-endian encoding. Extra bits will be discarded.
#uint16be Source
uint16be :: Int -> ByteString
Encode an integer of 16 bits in big-endian encoding. Extra bits will be discarded.
#uint8le Source
uint8le :: Int -> ByteString
Encode an integer of 8 bits in little-endian encoding. Extra bits will be discarded.
#uint16le Source
uint16le :: Int -> ByteString
Encode an integer of 16 bits in little-endian encoding. Extra bits will be discarded.