| Portability | GHC |
|---|---|
| Stability | experimental |
| Maintainer | marius@monkey.org |
Data.BERT.Packet
Description
BERP (BERT packets) support.
- data Packet = Packet Term
- fromPacket :: Packet -> Term
- packets :: ByteString -> [Packet]
Documentation
A single BERP. Little more than a wrapper for a term.
fromPacket :: Packet -> TermSource
packets :: ByteString -> [Packet]Source
From a lazy bytestring, return a (lazy) list of packets. This is
convenient for parsing a stream of adjacent packets. (Eg. by using
some form of getContents to get a ByteString out of a data
source).