-
Notifications
You must be signed in to change notification settings - Fork 457
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
colblk: ensure BitmapBuilder Size and Finish agree on encoding
Previously, if a bitmap builder switched from the all-zero encoding to the default encoding, a subsequent call to Finish with a row count that should use the all-zero encoding would erroneously write the default encoding (attempting to write more bytes than were allocated). This commit updates the BitmapBuilder to keep track of the first set bit of the bitmap. During Finish, this is used to determine the appropriate encoding. Invert continues to force use of the default encoding.
- Loading branch information
Showing
2 changed files
with
45 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters