Codec.Binary.Yenc

dataenc-0.13.0.4: Data encoding library

Codec.Binary.Yenc

Description

Implementation based on the specification found at http://yence.sourceforge.net/docs/protocol/version1_3_draft.html.

Further documentation and information can be found at http://www.haskell.org/haskellwiki/Library/Data_encoding.

Synopsis

- encode :: [Word8] -> [Word8]
- decode :: [Word8] -> Maybe [Word8]
- decode' :: [Word8] -> [Maybe Word8]
- chop :: Int -> [Word8] -> [[Word8]]
- unchop :: [[Word8]] -> [Word8]

# Documentation

encode :: [Word8] -> [Word8]

Encode data.

decode :: [Word8] -> Maybe [Word8]

Decode data (strict).

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

Decode data (lazy).

chop

Arguments

:: Int | length of individual lines
-> [Word8] |
-> [[Word8]] |

Chop up a string in parts.

unchop :: [[Word8]] -> [Word8]

Concatenate the strings into one long string.