Safe Haskell | None |
---|---|
Language | Haskell2010 |
Exomizer
Contents
Description
The functions of this module are identical to use the command line tool.
The modules Exomizer.Raw and Exomizer.Mem give more options.
Each function is listed with and without an underscore at the end. The variant with the underscore does not return the compression info but the compression result is identical.
- data CrunchOptions
- coEncoding :: CrunchOptions -> Maybe String
- coMaxPasses :: CrunchOptions -> Int
- coMaxLen :: CrunchOptions -> Int
- coMaxOffset :: CrunchOptions -> Int
- coUseLiteralSequences :: CrunchOptions -> Bool
- coFavourSpeed :: CrunchOptions -> Bool
- defaultCrunchOptions :: CrunchOptions
- data CrunchInfo
- ciLiteralSequencesUsed :: CrunchInfo -> Bool
- ciNeededSafetyOffset :: CrunchInfo -> Int
- ciUsedEncoding :: CrunchInfo -> String
- exomizerRaw :: CrunchOptions -> ByteString -> (ByteString, CrunchInfo)
- exomizerRaw_ :: CrunchOptions -> ByteString -> ByteString
- exomizerRawBackwards :: CrunchOptions -> ByteString -> (ByteString, CrunchInfo)
- exomizerRawBackwards_ :: CrunchOptions -> ByteString -> ByteString
- exomizerRawReverse :: CrunchOptions -> ByteString -> (ByteString, CrunchInfo)
- exomizerRawReverse_ :: CrunchOptions -> ByteString -> ByteString
- exomizerRawBackwardsReverse :: CrunchOptions -> ByteString -> (ByteString, CrunchInfo)
- exomizerRawBackwardsReverse_ :: CrunchOptions -> ByteString -> ByteString
- exomizerMem :: CrunchOptions -> [(Int16, ByteString)] -> (ByteString, CrunchInfo)
- exomizerMem_ :: CrunchOptions -> [(Int16, ByteString)] -> ByteString
- exomizerMemForward :: CrunchOptions -> [(Int16, ByteString)] -> (ByteString, CrunchInfo)
- exomizerMemForward_ :: CrunchOptions -> [(Int16, ByteString)] -> ByteString
- exomizerLevel_ :: CrunchOptions -> [(Int16, ByteString)] -> ByteString
- exomizerLevelForward_ :: CrunchOptions -> [(Int16, ByteString)] -> 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
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
Raw
exomizerRaw :: CrunchOptions -> ByteString -> (ByteString, CrunchInfo) Source #
Same as exomizer raw
Since: 1.0.0
exomizerRaw_ :: CrunchOptions -> ByteString -> ByteString Source #
Same as exomizer raw
Since: 1.0.0
exomizerRawBackwards :: CrunchOptions -> ByteString -> (ByteString, CrunchInfo) Source #
Same as exomizer raw -b
Since: 1.0.0
exomizerRawBackwards_ :: CrunchOptions -> ByteString -> ByteString Source #
Same as exomizer raw -b
Since: 1.0.0
exomizerRawReverse :: CrunchOptions -> ByteString -> (ByteString, CrunchInfo) Source #
Same as exomizer raw -r
Since: 1.0.0
exomizerRawReverse_ :: CrunchOptions -> ByteString -> ByteString Source #
Same as exomizer raw -r
Since: 1.0.0
exomizerRawBackwardsReverse :: CrunchOptions -> ByteString -> (ByteString, CrunchInfo) Source #
Same as exomizer raw -b -r
Since: 1.0.0
exomizerRawBackwardsReverse_ :: CrunchOptions -> ByteString -> ByteString Source #
Same as exomizer raw -b -r
Since: 1.0.0
Mem
exomizerMem :: CrunchOptions -> [(Int16, ByteString)] -> (ByteString, CrunchInfo) Source #
Same as exomizer mem -l none
Since: 1.0.0
exomizerMem_ :: CrunchOptions -> [(Int16, ByteString)] -> ByteString Source #
Same as exomizer mem -l none
Since: 1.0.0
exomizerMemForward :: CrunchOptions -> [(Int16, ByteString)] -> (ByteString, CrunchInfo) Source #
Same as exomizer mem -l none -f
Since: 1.0.0
exomizerMemForward_ :: CrunchOptions -> [(Int16, ByteString)] -> ByteString Source #
Same as exomizer mem -l none -f
Since: 1.0.0
Level
exomizerLevel_ :: CrunchOptions -> [(Int16, ByteString)] -> ByteString Source #
Same as exomizer level
Since: 1.0.0
exomizerLevelForward_ :: CrunchOptions -> [(Int16, ByteString)] -> ByteString Source #
Same as exomizer level -f
Since: 1.0.0