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.
Documentation
parse :: ByteString -> Either String BValueSource
Try to convert raw bytestring to bencoded value according to specification.
build :: BValue -> ByteStringSource
Convert bencoded value to raw bytestring according to the specification.