zoom-cache-0.5.1.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

readInt8 :: (Nullable s, ListLike s Word8, Functor m, MonadIO m, Integral a) => Iteratee s m aSource

Read 1 byte as an Integral

readInt16be :: (Nullable s, ListLike s Word8, Functor m, MonadIO m, Integral a) => Iteratee s m aSource

Read 2 bytes as a big-endian Integral

readInt32be :: (Nullable s, ListLike s Word8, Functor m, MonadIO m, Integral a) => Iteratee s m aSource

Read 4 bytes as a big-endian Integral

readInt64be :: (Nullable s, ListLike s Word8, Functor m, MonadIO m, Integral a) => Iteratee s m aSource

Read 8 bytes as a big-endian Integral

readFloat32be :: (Nullable s, ListLike s Word8, Functor m, MonadIO m) => Iteratee s m FloatSource

Read 4 bytes as a big-endian Float

readDouble64be :: (Nullable s, ListLike s Word8, Functor m, MonadIO m) => Iteratee s m DoubleSource

Read 8 bytes as a big-endian Double

readRational64be :: (Nullable s, ListLike s Word8, Functor m, MonadIO m) => Iteratee s 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.