BSON_VECTOR_PA...IEW_UNPACK_BOOL(3)
π BSON_VECTOR_PA...IEW_UNPACK_BOOL(3) π
okay so bestie, welcome to libbson, section 3 of the manual β this one's all about bson_vector_packed_bit_const_view_unpack_bool, and yes the header name is literally truncated like that in the page title, we don't make the rules, we just vibe with them β¨
This function unpacks a contiguous block of elements from a bson_vector_packed_bit_const_view_t into a C array of bool. slay.
πΈ SYNOPSIS πΈ
bool
bson_vector_packed_bit_const_view_unpack_bool (bson_vector_packed_bit_const_view_t view,
bool *unpacked_values_out,
size_t element_count,
size_t vector_offset_elements);
π PARAMETERS π
viewβ a validbson_vector_packed_bit_const_view_t. valid is the vibe check here, no cap π«Άunpacked_values_outβ the location where theboolelements will get unpacked to. it's giving "destination energy" β¨element_countβ how many elements to unpack. literally the count π€vector_offset_elementsβ the vector index of the first element to unpack. where we start, queen π
π¦ DESCRIPTION π¦
Elements are unpacked from individual bits into a C array of bool. like, one bit each, glow-up into a full bool, iconic behavior honestly π§
β RETURNS β
If the element_count and vector_offset_elements parameters overflow the bounds of the Vector, it returns false without taking any other action β so nothing else happens, it just says no π
If the parameters are in range, this is guaranteed to succeed. periodt. On success it returns true and unpacks element_count elements into *unpacked_values_out π
heads up bestie: if the parameters are out of range, false is the whole answer β no partial unpacking, no side quests π
SEE ALSO:
bson_vector_packed_bit_view_unpack_bool()
π AUTHOR π
MongoDB, Inc
π COPYRIGHT π
2009-present, MongoDB, Inc.
that's the whole page, mwah π β brought to you by libbson 2.5.6, dated Oct 09, 20β¦ (the footer got a little cut off mid-year, but she's still gorgeous), and that's on BSON_VECTOR_PA...IEW_UNPACK_BOOL(3) fr fr πβ¨π
π¦ 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