BSON_VECTOR_PA...W_LENGTH_BYTES(3)

๐Ÿ“ฆ
version 2.5.6 ยท 3 versions
, in epel 10

๐ŸŒธ 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 valid bson_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

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