exomizer-1.0.0: Compression and decompression in the exomizer format

Safe HaskellNone
LanguageHaskell2010

Exomizer.Mem

Contents

Description

Cruncher interface exomizer mem style.

Synopsis

Options & Info

coMaxLen :: CrunchOptions -> Int Source #

Since: 1.0.0

defaultCrunchOptions :: CrunchOptions Source #

Default compression parameters

Since: 1.0.0

validCrunchOptions :: CrunchOptions -> Bool Source #

Check if the options are valid

Since: 1.0.0

data CrunchInfo Source #

Information about the compressed data (result of the compression)

Since: 1.0.0

Direction

data Direction Source #

Direction

Since: 1.0.0

Constructors

Forward

Starting at the lowest and ending the byte after the highest

Backwards

Starting one byte after the highest and ending on the lowest

Instances

data ReadWrite Source #

Direction of reading (the compressed data) and writing (the uncompressed data)

readDirection `ReadWrite` writeDirection

Since: 1.0.0

forward :: ReadWrite Source #

Forward: both read and write

Since: 1.0.0

backwards :: ReadWrite Source #

Backwards: both read and write

Since: 1.0.0

Mem crunchers

memCrunch :: ReadWrite -> CrunchOptions -> (Int16, ByteString) -> (ByteString, CrunchInfo) Source #

Crunch data exomizer mem style. This function does not have automatic joining of multiple chunks, see joinChunks.

Since: 1.0.0

memCrunch_ :: ReadWrite -> CrunchOptions -> (Int16, ByteString) -> ByteString Source #

Identical to memCrunch but does not return the CrunchInfo.

Since: 1.0.0

Join chunks

joinChunks :: Word8 -> [(Int16, ByteString)] -> (Int16, ByteString) Source #

Join the supplied chunks into one. The spaces in between are filled with the supplied byte.

There is no check for overlap or if the result exceeds the memory space.

Since: 1.0.0