BSON_VECTOR_PA...IEW_READ_PACKED(3)
π NAME π
okay bestie, welcome to the libbson manual page for bson_vector_packed_bit_const_view_read_packed β the function that copies a contiguous block of packed bytes out of a bson_vector_packed_bit_const_view_t. β¨
π SYNOPSIS π
bool
bson_vector_packed_bit_const_view_read_packed (bson_vector_packed_bit_const_view_t view,
uint8_t *packed_values_out,
size_t byte_count,
size_t vector_offset_bytes);
π¦ PARAMETERS π¦
viewβ a validbson_vector_packed_bit_const_view_t. like, it gotta be valid, bestie.packed_values_outβ the location where the packed bytes will be read to.byte_countβ number of bytes to read.vector_offset_bytesβ the byte index of the first packed byte to read.
πΈ DESCRIPTION πΈ
Packed bytes get copied in bulk from the view straight to the output pointer you handed over. it's giving efficient, no cap. π
If the Vector's element count isn't a multiple of 8, its final byte will include bits that do not belong to any element. Vector validation checks that these bits are zero. π
π₯ RETURNS π₯
If the byte_count and vector_offset_bytes parameters overflow the bounds of the Vector, it returns false without taking any other action. If the parameters are in range, this is guaranteed to succeed β periodt. On success, it returns true and reads byte_count bytes into *packed_values_out. π
π SEE ALSO π
bson_vector_packed_bit_view_read_packed()bson_vector_packed_bit_view_write_packed()
π AUTHOR π
MongoDB, Inc
π COPYRIGHT π
2009-present, MongoDB, Inc.
and that's the whole vibe! this page comes from libbson version 2.5.6, date stamp Oct 09, 20 β mwah, go read some packed bytes bestie ππ«Ά
π¦ 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