dataenc-0.11: Data encoding librarySource codeContentsIndex
Codec.Binary.Base85
Description

Base85 module.

Implemented as described at http://en.wikipedia.org/wiki/Ascii85.

Synopsis
encode :: [Word8] -> String
decode :: String -> Maybe [Word8]
decode' :: String -> [Maybe Word8]
chop :: Int -> String -> [String]
unchop :: [String] -> String
Documentation
encode :: [Word8] -> StringSource

Encode data.

The result will not be enclosed in <~ ~>.

decode :: String -> Maybe [Word8]Source

Decode data (strict).

The input must not be enclosed in <~ ~>.

decode' :: String -> [Maybe Word8]Source

Decode data (lazy).

The input must not be enclosed in <~ ~>.

chopSource
:: Intlength 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] -> StringSource
Concatenate the strings into one long string.
Produced by Haddock version 2.1.0