table of contents
other versions
- unstable 2.1.0-1
BSON_VECTOR_PACKED_BIT_VIEW_PADDING(3) | libbson | BSON_VECTOR_PACKED_BIT_VIEW_PADDING(3) |
Returns the number of unused bits in a Vector referenced by a bson_vector_packed_bit_view_t.
SYNOPSIS¶
size_t bson_vector_packed_bit_view_padding (bson_vector_packed_bit_view_t view);
PARAMETERS¶
- •
- view: A valid bson_vector_packed_bit_view_t.
DESCRIPTION¶
The 3-bit padding field is extracted from a copy of the Vector header inside view.
RETURNS¶
The number of unused bits in the final packed byte. Guaranteed to be between 0 and 7 inclusive. Vector validation guarantees that empty Vectors have a padding of 0.
SEE ALSO:
bson_vector_packed_bit_const_view_padding()
AUTHOR¶
MongoDB, Inc
COPYRIGHT¶
2009-present, MongoDB, Inc.
August 14, 2025 | 2.1.0 |