BSON_VECTOR_PA...W_LENGTH_BYTES(3)

πŸ“¦
version 2.5.6 Β· 3 versions
, in epel 10

πŸ¦‹ BSON_VECTOR_PA...W_LENGTH_BYTES(3) πŸ¦‹

okay bestie, this is a libbson moment πŸ’… The whole serve: it returns the number of packed bytes in a Vector referenced by a bson_vector_packed_bit_view_t. That's it β€” main character function energy. ✨

✨ SYNOPSIS ✨

size_t
bson_vector_packed_bit_view_length_bytes (bson_vector_packed_bit_view_t view);

πŸŽ€ PARAMETERS πŸŽ€

  • view β€” a valid bson_vector_packed_bit_view_t. Valid is the vibe check here βœ…

πŸ’– DESCRIPTION πŸ’–

A byte count is calculated from the view's stored binary block length.

If the element count isn't a multiple of 8, the final byte will include bits that do not belong to any element. Not me warning you about stray bits πŸ‘€ β€” it's literally in the byte math, so don't be surprised when the final byte has extra little roommates.

🌈 RETURNS 🌈

The number of bytes, as a size_t.

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc

2009-present, MongoDB, Inc.


signing off with libbson 2.5.6, dated Oct 09, 202, and the page title BSON_VECTOR_PA...W_LENGTH_BYTES(3) β€” periodt 🫢✨

πŸ“¦ where this page comes from