Skip to content

Add encode_into method - #34

Merged
jcrist merged 2 commits into
masterfrom
encode_into
Jun 28, 2021
Merged

Add encode_into method#34
jcrist merged 2 commits into
masterfrom
encode_into

Conversation

@jcrist

@jcrist jcrist commented Jun 28, 2021

Copy link
Copy Markdown
Member

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 added 2 commits June 28, 2021 12:17
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.

1 participant