Codec.Binary.Base85
Description
Implemented as described at http://en.wikipedia.org/wiki/Ascii85.
Further documentation and information can be found at http://www.haskell.org/haskellwiki/Library/Data_encoding.
Documentation
encode :: [Word8] -> String
Encode data.
The result will not be enclosed in <~ ~>.
decode :: String -> Maybe [Word8]
Decode data (strict).
The input must not be enclosed in <~ ~>.
decode' :: String -> [Maybe Word8]
Decode data (lazy).
The input must not be enclosed in <~ ~>.
Arguments
:: Int | length of individual lines |
-> String | |
-> [String] |
Chop up a string in parts.
The length given is rounded down to the nearest multiple of 5.
unchop :: [String] -> String
Concatenate the strings into one long string.