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

BooleanBufferBuilder produces Buffers with Incorrect Length #1051

Closed
tustvold opened this issue Dec 17, 2021 · 0 comments · Fixed by #1052
Closed

BooleanBufferBuilder produces Buffers with Incorrect Length #1051

tustvold opened this issue Dec 17, 2021 · 0 comments · Fixed by #1052
Labels

Comments

@tustvold
Copy link
Contributor

Describe the bug

If you create a BooleanBufferBuilder with a non-zero capacity, the produced Buffer will have that capacity / 8 as the length. Even if you don't write that many bits to the buffer

To Reproduce

let mut b = BooleanBufferBuilder::new(8);
let buffer = b.finish();
assert_eq!(0, buffer.len());

Expected behavior

The buffer length should match the amount of data written to it

Additional context
Add any other context about the problem here.

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

Successfully merging a pull request may close this issue.

1 participant