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

Portabilityunknown
Stabilityunstable
MaintainerConrad Parker <conrad@metadecks.org>

Data.Iteratee.ZoomCache

Contents

Description

Iteratee reading of ZoomCache files.

Synopsis

Types

Parsing iteratees

iterHeaders :: (Nullable s, ListLike s Word8, Functor m, MonadIO m) => [IdentifyCodec] -> Iteratee s m CacheFileSource

Parse only the global and track headers of a zoom-cache file, returning a CacheFile

Enumeratee

enumCacheFile :: (Nullable s, ListLike s Word8, Functor m, MonadIO m) => [IdentifyCodec] -> Enumeratee s Stream m aSource

An enumeratee of a zoom-cache file, from the global header onwards. The global and track headers will be transparently read, and the CacheFile visible in the Stream elements.

enumStream :: (Nullable s, ListLike s Word8, Functor m, MonadIO m) => CacheFile -> Enumeratee s Stream m aSource

An enumeratee of zoom-cache data, after global and track headers have been read, or if the CacheFile has been acquired elsewhere.

Iteratee maps

mapStream :: (Nullable s, ListLike s Word8, Functor m, MonadIO m) => [IdentifyCodec] -> (Stream -> m ()) -> Iteratee s m ()Source

Map a monadic Stream processing function over an entire zoom-cache file.

mapPackets :: (Nullable s, ListLike s Word8, Functor m, MonadIO m) => [IdentifyCodec] -> (Packet -> m ()) -> Iteratee s m ()Source

Map a monadic Packet processing function over an entire zoom-cache file.

mapSummaries :: (Nullable s, ListLike s Word8, Functor m, MonadIO m) => [IdentifyCodec] -> (ZoomSummary -> m ()) -> Iteratee s m ()Source

Map a monadic Summary processing function over an entire zoom-cache file.