0.1.3 • Published 6 years ago
pull-protocol-buffers v0.1.3
pull-protocol-buffers
Protocol Buffers length-prefixed pull-stream encoder/decoder
API
ppb.encode(proto)Encodes messages that come in
proto: The Protocol buffers messagereturns: A length-prefixed duplex
ppb.decode(proto)Decodes protocol-buffers that come in
proto: The Protocol buffers messagereturns: A length-prefixed duplex
.pullThe same api as above just without length-prefixing.
Not network safe. Useful for encoding/decoding single messages.