Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: encode single and decode cbs #1

Merged
merged 1 commit into from
Aug 13, 2019

Conversation

alanshaw
Copy link
Owner

Adds encode.single for encoding a single chunk with a varint length prefix.

Adds onLength and onData optional callbacks for decode that are called each time a length prefix or data chunk are decoded from the stream.

Adds `encode.single` for encoding a single chunk with a varint length prefix.

Adds `onLength` and `onData` optional callbacks for `decode` that are called each time a length prefix or data chunk are decoded from the stream.

License: MIT
Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
@alanshaw alanshaw merged commit ce68bc8 into master Aug 13, 2019
@alanshaw alanshaw deleted the feat/encode-single-and-decode-cbs branch August 13, 2019 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant