Safe Haskell | None |
---|---|
Language | Haskell2010 |
Exomizer.Mem
Description
Cruncher interface exomizer mem
style.
- data CrunchOptions
- coEncoding :: CrunchOptions -> Maybe String
- coMaxPasses :: CrunchOptions -> Int
- coMaxLen :: CrunchOptions -> Int
- coMaxOffset :: CrunchOptions -> Int
- coUseLiteralSequences :: CrunchOptions -> Bool
- coFavourSpeed :: CrunchOptions -> Bool
- defaultCrunchOptions :: CrunchOptions
- validCrunchOptions :: CrunchOptions -> Bool
- data CrunchInfo
- ciLiteralSequencesUsed :: CrunchInfo -> Bool
- ciNeededSafetyOffset :: CrunchInfo -> Int
- ciUsedEncoding :: CrunchInfo -> String
- data Direction
- data ReadWrite = Direction `ReadWrite` Direction
- forward :: ReadWrite
- backwards :: ReadWrite
- memCrunch :: ReadWrite -> CrunchOptions -> (Int16, ByteString) -> (ByteString, CrunchInfo)
- memCrunch_ :: ReadWrite -> CrunchOptions -> (Int16, ByteString) -> ByteString
- joinChunks :: Word8 -> [(Int16, ByteString)] -> (Int16, ByteString)
Options & Info
coEncoding :: CrunchOptions -> Maybe String Source #
Since: 1.0.0
coMaxPasses :: CrunchOptions -> Int Source #
Since: 1.0.0
coMaxLen :: CrunchOptions -> Int Source #
Since: 1.0.0
coMaxOffset :: CrunchOptions -> Int Source #
Since: 1.0.0
coUseLiteralSequences :: CrunchOptions -> Bool Source #
Since: 1.0.0
coFavourSpeed :: CrunchOptions -> Bool 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
Instances
ciLiteralSequencesUsed :: CrunchInfo -> Bool Source #
Since: 1.0.0
ciNeededSafetyOffset :: CrunchInfo -> Int Source #
Since: 1.0.0
ciUsedEncoding :: CrunchInfo -> String Source #
Since: 1.0.0
Direction
Direction
Since: 1.0.0
Direction of reading (the compressed data) and writing (the uncompressed data)
readDirection `ReadWrite` writeDirection
Since: 1.0.0
Constructors
Direction `ReadWrite` Direction |
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