Module

Data.ByteString.Encode

#int8be

int8be :: Int -> ByteString

Encode an integer of 8 bits in big-endian encoding. Extra bits will be discarded.

#int8le

int8le :: Int -> ByteString

Encode an integer of 8 bits in little-endian encoding. Extra bits will be discarded.

#int16be

int16be :: Int -> ByteString

Encode an integer of 16 bits in big-endian encoding. Extra bits will be discarded.

#int16le

int16le :: Int -> ByteString

Encode an integer of 16 bits in little-endian encoding. Extra bits will be discarded.

#int32be

int32be :: Int -> ByteString

Encode an integer of 32 bits in big-endian encoding.

#int32le

int32le :: Int -> ByteString

Encode an integer of 32 bits in little-endian encoding.

#uint8be

uint8be :: Int -> ByteString

Encode an integer of 8 bits in big-endian encoding. Extra bits will be discarded.

#uint8le

uint8le :: Int -> ByteString

Encode an integer of 8 bits in little-endian encoding. Extra bits will be discarded.

#uint16be

uint16be :: Int -> ByteString

Encode an integer of 16 bits in big-endian encoding. Extra bits will be discarded.

#uint16le

uint16le :: Int -> ByteString

Encode an integer of 16 bits in little-endian encoding. Extra bits will be discarded.

Modules