HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulebytesmith-0.3.11.1Haskell2010

Data.Bytes.Parser.BigEndian

Big-endian fixed-width numbers.

  • 15 values
  • Packagebytesmith-0.3.11.1
  • Exports15
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceBigEndian.hs

Unsigned

6 declarations

Signed

4 declarations

Many

0 declarations

Unsigned

valueword16Array
  1. :: e

    Error message if not enough bytes are present

  2. -> Int

    Number of big-endian 16-bit words to expect

  3. -> Parser e s (PrimArray Word16)

    Native-endian elements

#

Parse an array of big-endian unsigned 16-bit words. If the host is big-endian, the implementation is optimized to simply memcpy bytes into the result array. The result array always has elements in native-endian byte order.

valueword32Array
  1. :: e

    Error message if not enough bytes are present

  2. -> Int

    Number of big-endian 32-bit words to expect

  3. -> Parser e s (PrimArray Word32)

    Native-endian elements

#

Parse an array of big-endian unsigned 32-bit words.

valueword64Array
  1. :: e

    Error message if not enough bytes are present

  2. -> Int

    Number of big-endian 64-bit words to consume

  3. -> Parser e s (PrimArray Word64)

    Native-endian elements

#

Parse an array of big-endian unsigned 64-bit words.

valueword128Array
  1. :: e

    Error message if not enough bytes are present

  2. -> Int

    Number of big-endian 128-bit words to consume

  3. -> Parser e s (PrimArray Word128)

    Native-endian elements

#

Parse an array of big-endian unsigned 128-bit words.

valueword256Array
  1. :: e

    Error message if not enough bytes are present

  2. -> Int

    Number of big-endian 256-bit words to consume

  3. -> Parser e s (PrimArray Word256)

    Native-endian elements

#

Parse an array of big-endian unsigned 256-bit words.