zoom-cache-0.4.0.0: A streamable, seekable, zoomable cache file format

Portabilityunknown
Stabilityunstable
MaintainerConrad Parker <conrad@metadecks.org>

Data.Iteratee.ZoomCache.Utils

Contents

Description

Iteratee reading of ZoomCache files.

Synopsis

Raw data reading iteratees

readInt16be :: (Functor m, MonadIO m) => Iteratee [Word8] m IntSource

Read 2 bytes as a big-endian Int.

readInt32be :: (Functor m, MonadIO m) => Iteratee [Word8] m IntSource

Read 4 bytes as a big-endian Int.

readInt64be :: (Functor m, MonadIO m, Integral a) => Iteratee [Word8] m aSource

Read 8 bytes as a big-endian Integer

readDouble64be :: (Functor m, MonadIO m) => Iteratee [Word8] m DoubleSource

Read 8 bytes as a big-endian Double

readRational64be :: (Functor m, MonadIO m) => Iteratee [Word8] m RationalSource

Read 16 bytes as a big-endian Rational, encoded as an 8 byte big endian numerator followed by an 8 byte big endian denominator.