BSON_VECTOR_PA...W_LENGTH_BYTES(3)
๐ธ NAME ๐ธ
bson_vector_packed_bit_const_view_length_bytes โ Return the number of packed bytes in a Vector referenced by a bson_vector_packed_bit_const_view_t.
okay so this page is from libbson (the header says BSON_VECTOR_PA...W_LENGTH_BYTES(3)), and it's literally just here to hand you that byte count, bestie. โจ
๐ SYNOPSIS ๐
size_t
bson_vector_packed_bit_const_view_length_bytes (bson_vector_packed_bit_const_view_t view);
๐ PARAMETERS ๐
viewโ A validbson_vector_packed_bit_const_view_t.
๐ฆ DESCRIPTION ๐ฆ
A byte count is calculated from the view's stored binary block length. ๐งฎ
๐ heads up: if the element count isn't a multiple of 8, the final byte will include bits that do not belong to any element. so that last byte is lowkey carrying some extra little tagalong bits, no cap.
๐ RETURNS ๐
The number of bytes, as a size_t. ๐
๐ SEE ALSO ๐
bson_vector_packed_bit_view_length_bytes()
๐ AUTHOR ๐
MongoDB, Inc
๐ฆ COPYRIGHT ๐ฆ
2009-present, MongoDB, Inc.
okay bye bestie ๐ซถ โ this is libbson version 2.5.6, dated Oct 09, 202 (the footer's date got literally eaten by BSON..., iconic ๐ญ), and that's the whole vibe. ๐โจ
๐ฆ where this page comes from
- epel 10: libbson-devel 2.5.6-1.el10_3 ยท Apache-2.0 AND ISC AND MIT AND Zlib
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms