dataenc-0.11: Data encoding library

Codec.Binary.Base85

Description

Base85 module.

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

Synopsis

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

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] -> StringSource

Concatenate the strings into one long string.