ruby-marshal-0.1.0: Parse a subset of Ruby objects serialised with Marshal.dump.

Copyright(c) Philip Cunningham, 2015
LicenseMIT
Maintainerhello@filib.io
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Data.Ruby.Marshal.Int

Contents

Description

Parsers for signed and unsigned integrals.

Synopsis

Signed integrals

getInt8 :: Get Int8 Source

Read an Int8.

getInt16le :: Get Int16 Source

Read an Int16.

getInt24le :: Get Int32 Source

Read an Int24. Since Int24 unavailable in Data.Int we use Int32.

getInt32le :: Get Int32 Source

Read an Int32.

Unsigned integrals

getWord8 :: Get Word8

Read a Word8 from the monad state

getWord16le :: Get Word16

Read a Word16 in little endian format

getWord24le :: Get Word32 Source

Read a Word24 in little endian format. Since Word24 unavailable in Data.Int we use Word32.

getWord32le :: Get Word32

Read a Word32 in little endian format