lathe-0.1.0.0: Pure incremental byte parser.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Parser.Lathe.Binary

Description

Functions for parsing binary data.

Synopsis

Documentation

int8 :: end -> Parser end Int8 Source #

Consume 1 byte into an Int8.

word8 :: end -> Parser end Word8 Source #

Consume 1 byte into a Word8.

Big-endian

int16BE :: end -> Parser end Int16 Source #

Consume 2 bytes into a big-endian Int16.

int32BE :: end -> Parser end Int32 Source #

Consume 4 bytes into a big-endian Int32.

int64BE :: end -> Parser end Int64 Source #

Consume 8 bytes into a big-endian Int64.

word16BE :: end -> Parser end Word16 Source #

Consume 2 bytes into a big-endian Word16.

word32BE :: end -> Parser end Word32 Source #

Consume 4 bytes into a big-endian Word32.

word64BE :: end -> Parser end Word64 Source #

Consume 8 bytes into a big-endian Word64.

floatBE :: end -> Parser end Float Source #

Consume 4 bytes into a big-endian Float.

doubleBE :: end -> Parser end Double Source #

Consume 8 bytes into a big-endian Double.

Little-endian

int16LE :: end -> Parser end Int16 Source #

Consume 2 bytes into a little-endian Int16.

int32LE :: end -> Parser end Int32 Source #

Consume 4 bytes into a little-endian Int32.

int64LE :: end -> Parser end Int64 Source #

Consume 8 bytes into a little-endian Int64.

word16LE :: end -> Parser end Word16 Source #

Consume 2 bytes into a little-endian Word16.

word32LE :: end -> Parser end Word32 Source #

Consume 4 bytes into a little-endian Word32.

word64LE :: end -> Parser end Word64 Source #

Consume 8 bytes into a little-endian Word64.

floatLE :: end -> Parser end Float Source #

Consume 4 bytes into a little-endian Float.

doubleLE :: end -> Parser end Double Source #

Consume 8 bytes into a little-endian Double.