it-protocol-buffers
v0.2.1
Published
Protocol Buffers length-prefixed async-iterator encoder/decoder
Downloads
1,044
Maintainers
Readme
it-protocol-buffers
Protocol Buffers length-prefixed async-iterator encoder/decoder
API
ppb.encode(proto)
Encodes messages that come in
proto
: The Protocol buffers messagereturns: An async-iterator length-prefixed duplex
ppb.decode(proto)
Decodes protocol-buffers that come in
proto
: The Protocol buffers messagereturns: An async-iterator length-prefixed duplex
.it
The same api as above just without length-prefixing.
Not network safe. Useful for encoding/decoding single messages.