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

How do I encode to a writer in 0.4? #54

Open
dpc opened this issue Apr 23, 2021 · 1 comment
Open

How do I encode to a writer in 0.4? #54

dpc opened this issue Apr 23, 2021 · 1 comment
Assignees
Milestone

Comments

@dpc
Copy link

dpc commented Apr 23, 2021

There used to be write_hex that encoded straight into Writer, but now it's gone and I'm not sure what's the most idiomatic way to replace it without temporarily allocation.

@KokaKiwi
Copy link
Owner

KokaKiwi commented Apr 24, 2021

Uhh yeah since 0.4 hex uses "from-iterator" types for encoding result and thus doesn't support to encode directly to Writer any more :x
This "ability" will most surely come back in later versions (cf #37) but for now yeah there's sadly no way without allocating beforehand :(

I'll tag this issue as "bug" or something in order to have it somewhere for the "1.0" milestone

@KokaKiwi KokaKiwi self-assigned this Apr 24, 2021
@KokaKiwi KokaKiwi added this to the 1.0 milestone Apr 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants