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

Set capacity, not length, for bytes buffer allocation #200

Merged
merged 4 commits into from
Apr 10, 2021

Conversation

bpeake-illuscio
Copy link
Contributor

Closes #199 via fix laid out in the issue.

I've added a couple tests to confirm correctness of the read/write.

@bpeake-illuscio bpeake-illuscio changed the title fixed allocation-then-append of buffer for OW values Bug/fixed allocation-then-append of buffer for OW values Apr 2, 2021
Copy link
Owner

@suyashkumar suyashkumar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks so much!

read.go Outdated Show resolved Hide resolved
@bpeake-illuscio
Copy link
Contributor Author

Pushed. Thank you!

This was referenced Apr 5, 2021
@suyashkumar suyashkumar changed the title Bug/fixed allocation-then-append of buffer for OW values Set capacity, not length, for bytes buffer allocation Apr 10, 2021
@suyashkumar suyashkumar merged commit 04a39fa into suyashkumar:main Apr 10, 2021
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.

Bug: OW values have leading 0-bytes equal to their vl
3 participants