Safe Haskell | None |
---|---|
Language | Haskell2010 |
Exomizer.Raw
Description
Cruncher interface exomizer raw
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
- rawCrunch :: ReadWrite -> CrunchOptions -> ByteString -> (ByteString, CrunchInfo)
- rawCrunch_ :: ReadWrite -> CrunchOptions -> ByteString -> ByteString
- rawDecrunch :: ReadWrite -> 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
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 |
Raw crunchers
rawCrunch :: ReadWrite -> CrunchOptions -> ByteString -> (ByteString, CrunchInfo) Source #
Crunch data exomizer raw
style.
Since: 1.0.0
rawCrunch_ :: ReadWrite -> CrunchOptions -> ByteString -> ByteString Source #
Identical to rawCrunch
but does not return the CrunchInfo
.
Since: 1.0.0
rawDecrunch :: ReadWrite -> ByteString -> ByteString Source #
Decrunch some data.
WARNING: The linked exomizer library (and with that the program) may segfault when the input data is not valid!
Since: 1.0.0