Portability | portable |
---|---|
Stability | stable |
Maintainer | pxqr.sta@gmail.com |
Safe Haskell | None |
This module provides bencode values serialization. Normally, you
don't need to import this module, use BEncode
instead.
Parsing
parse :: B.ByteString -> Either String BValueSource
Try to convert raw bytestring to bencoded value according to specification.
Rendering
build :: BValue -> Lazy.ByteStringSource
Convert bencoded value to raw bytestring according to the specification.