BSON_VECTOR_INT8_VIEW_T(3)

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

πŸ’… BSON_VECTOR_INT8_VIEW_T(3) πŸ’…

okay bestie, this is the libbson manual page for bson_vector_int8_view_t, and it’s literally a reference to mutable non-owned BSON Binary data holding a valid Vector of int8 element type. it’s giving β€œtiny handle, big validated-data energy” πŸ¦‹βœ¨

✨ SYNOPSIS ✨

#include <bson/bson.h>

typedef struct bson_vector_int8_view_t {
   /*< private >*/
} bson_vector_int8_view_t;

🌸 DESCRIPTION 🌸

bson_vector_int8_view_t is a structure that acts as an opaque reference to a block of memory that has been validated as an int8 vector. ngl, she’s the reference, iykyk. πŸ‘‘

she’s meant to be passed by value and can be discarded at any time β€” any time, bestie. the contents of the structure should be considered private, so don’t go poking around in there. πŸ™ˆ

⚠️ vibe check: the bson_t MUST be valid for the lifetime of the view, and it is an error to modify the bson_t while using the view. that part is serious, fr fr. πŸ’€

πŸŽ€ EXAMPLE πŸŽ€

here’s the example, exactly as the page serves it β€” no edits, no remix, periodt: πŸ“

static const int8_t values[] = {1, 2, 3};
const size_t values_count = sizeof values / sizeof values[0];

bson_vector_int8_view_t view;
BSON_ASSERT (BSON_APPEND_VECTOR_INT8_UNINIT (&doc, "vector", values_count, &view));
BSON_ASSERT (bson_vector_int8_view_write (view, values, values_count, 0));

πŸ‘€ SEE ALSO πŸ‘€

  • bson_append_vector_int8_uninit()
  • bson_vector_int8_const_view_t

🫢 AUTHOR 🫢

MongoDB, Inc β€” periodt. πŸ’…

2009-present, MongoDB, Inc. β€” iconic. 🌈

btw this page is from libbson version 2.5.6, dated Oct 09, 2026 β€” mwah πŸ’‹

πŸ“¦ where this page comes from