BSON_VECTOR_PA...IEW_READ_PACKED(3)

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

πŸŽ€ 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 valid bson_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

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