Data.Bytes.Encode.BigEndian

byteslice-0.2.14.0: Slicing managed and unmanaged memory

Safe Haskell | None
Language | Haskell2010

Data.Bytes.Encode.BigEndian

Synopsis

- word16 :: Word16 -> Bytes
- word32 :: Word32 -> Bytes
- word64 :: Word64 -> Bytes
- int16 :: Int16 -> Bytes
- int32 :: Int32 -> Bytes
- int64 :: Int64 -> Bytes

# Documentation

word16 :: Word16 -> Bytes #

Encode a 16-bit unsigned integer as 4 bytes.

word32 :: Word32 -> Bytes #

Encode a 32-bit unsigned integer as 4 bytes.

word64 :: Word64 -> Bytes #

Encode a 16-bit unsigned integer as 4 bytes.

int16 :: Int16 -> Bytes #

Encode a 16-bit signed integer as 4 bytes.

int32 :: Int32 -> Bytes #

Encode a 32-bit signed integer as 4 bytes.

int64 :: Int64 -> Bytes #

Encode a 16-bit signed integer as 4 bytes.