BSON_VECTOR_PACKED_BIT_VIEW_INIT(3)
π¦ BSON_VECTOR_PACKED_BIT_VIEW_INIT(3) β libbson π¦
π NAME π
okay bestie, bson_vector_packed_bit_view_init is literally the function that initializes a bson_vector_packed_bit_view_t from a mutable uint8_t buffer. iconic behavior, no cap β¨
πΈ SYNOPSIS πΈ
bool
bson_vector_packed_bit_view_init (bson_vector_packed_bit_view_t *view_out,
uint8_t *binary_data,
uint32_t binary_data_len);
π PARAMETERS π
view_outβ abson_vector_packed_bit_view_tis written here on success πbinary_dataβ a pointer to the BSON Binary data block to be validated π«Άbinary_data_lenβ length of the binary data block, in bytes. periodt.
π¦ DESCRIPTION π¦
so here's the tea: the length, header, and trailing padding of the provided binary data block get checked for a valid Vector of packed_bit element type π₯
on success, the pointer and length are packaged as a bson_vector_packed_bit_view_t and written to *view_out. the view will only be valid as long as binary_data is valid β no cap, bestie, don't let the buffer dip while the view is still out here π
β RETURNS β
returns true if the view was successfully initialized. slay β
π AUTHOR π
MongoDB, Inc
π COPYRIGHT π
2009-present, MongoDB, Inc.
xoxo from libbson 2.5.6, dated Oct 09, 20 β mwah π
π¦ 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