decode: use exact decoded length rather than estimation#227
decode: use exact decoded length rather than estimation#227mina86 wants to merge 1 commit intomarshallpierce:masterfrom
Conversation
|
By the way, I’m beginning to think that the interface for the internal_decode should be completely changed. Specifically to something like: fn internal_decode(
dst: *mut [MaybeUninit<u8>],
src: *const [u8],
) -> Result<(), DecodeError>;With the following contract:
This would help address the following issues:
|
|
@mina86 any chance you are able to push this over the line? The author suggested in #210 (comment) that maybe this could be split up into smaller PRs.
FYI this would need to be an |
|
I'm quite happy to rearrange APIs to have nice new features, but |
Fixes: #210
Fixes: #212