zoom-cache-0.3.0.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 :: (Functor m, MonadIO m) => Iteratee [Word8] m CacheFileSource

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

Enumeratee

enumCacheFile :: (Functor m, MonadIO m) => Enumeratee [Word8] 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 :: (Functor m, MonadIO m) => CacheFile -> Enumeratee [Word8] 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 :: (Functor m, MonadIO m) => (Stream -> m ()) -> Iteratee [Word8] m ()Source

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

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

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

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

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