Skip to content

Commit

Permalink
fix: zero out bufferedbitpacked in skip
Browse files Browse the repository at this point in the history
  • Loading branch information
coastalwhite committed Aug 1, 2024
1 parent 7b1fef1 commit 4fb6faa
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,12 @@ impl<'a> BufferedBitpacked<'a> {
return unpacked_num_elements + n;
}

self.decoder.len() + unpacked_num_elements
// We skip the entire decoder. Essentially, just zero it out.
let decoder = self.decoder.take();
self.unpacked_start = 0;
self.unpacked_end = 0;

decoder.len() + unpacked_num_elements
}
}

Expand Down

0 comments on commit 4fb6faa

Please sign in to comment.