-
Notifications
You must be signed in to change notification settings - Fork 2
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
method signatures #5
Comments
Also ran into this issue trying to use this package. If I put together a pull request, would someone be able to review & publish any relevant changes? (also would be nice to put out feelers for who is actively maintaining this repo!) @yoshuawuyts @Frando @khernyo |
Yup, stumbled over this too and agree. The signatures of the methods @substack posted look good to me! I would review a PR. I don't know if someone actively maintains this currently? If not once we're confident with a 2.0 version (the signature change to return a |
Thanks @Frando ! I'll work up a PR soon. |
encode()
anddecode()
both have failure modes if you pass in a source or destination buffer that is too small but the return type isusize
for bothencode()
anddecode()
.The
_with_offset()
routines could likewise be removed, since slices in rust are very cheap.These are the routines I'm using inline in desert but I considered using this varinteger first:
https://github.com/substack/desert/blob/46789f4af0e98afb80438cb80db573d0d8dbb630/src/lib.rs#L1020-L1054
The text was updated successfully, but these errors were encountered: