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

Add encode_into method #34

Merged
merged 2 commits into from Jun 28, 2021
Merged

Add encode_into method #34

merged 2 commits into from Jun 28, 2021

Conversation

jcrist
Copy link
Owner

@jcrist jcrist commented Jun 28, 2021

This adds an Encoder.encode_into method, for encoding an object into
an already allocated bytearray buffer. This is useful for applications
that want to manage the backing memory themselves, or want to add a
prefix/suffix to the message without unnecessary memcpy costs.

This adds an `Encoder.encode_into` method, for encoding an object into
an already allocated `bytearray` buffer. This is useful for applications
that want to manage the backing memory themselves, or want to add a
prefix/suffix to the message without unnecessary `memcpy` costs.
@jcrist jcrist merged commit 64d7334 into master Jun 28, 2021
@jcrist jcrist deleted the encode_into branch June 28, 2021 20:49
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.

None yet

1 participant