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

proposal: encoding/binary: need uvarintLength method #66758

Closed
xgzlucario opened this issue Apr 10, 2024 · 1 comment
Closed

proposal: encoding/binary: need uvarintLength method #66758

xgzlucario opened this issue Apr 10, 2024 · 1 comment
Labels
Milestone

Comments

@xgzlucario
Copy link

Proposal Details

The standard library "encoding/binary" need UvarintLength method, which can quickly calculates the space occupied by an integer encoded as a variable length without memory allocation.

@gopherbot gopherbot added this to the Proposal milestone Apr 10, 2024
@randall77
Copy link
Contributor

Duplicate of #66284.
It might help to comment there if you have an additional use case that would motivate this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants