BSON_VECTOR_FL...VIEW_FROM_ITER(3)

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

πŸ’– BSON_VECTOR_FL...VIEW_FROM_ITER(3) πŸ’–

okay so bestie, welcome to the libbson manual page where we initialize a bson_vector_float32_view_t from a bson_iter_t pointing to a valid Vector of float32 element type. cute, focused, iconic. let's get into it ✨.

✨ SYNOPSIS ✨

bool
bson_vector_float32_view_from_iter (bson_vector_float32_view_t *view_out,
                                    bson_iter_t *iter);

πŸŽ€ PARAMETERS πŸŽ€

  • view_out β€” a bson_vector_float32_view_t is written here on success. that's the output slot, bestie 🫢
  • iter β€” a valid bson_iter_t. must be valid, no cap.

πŸ’… DESCRIPTION πŸ’…

The provided iterator β€” and yes, it must point to some kind of BSON item β€” gets checked for a valid Vector of float32 element type. vibe check first, always πŸ”βœ¨.

On success, a bson_vector_float32_view_t is set to point to the same underlying bson_t buffer as the provided bson_iter_t. same buffer, not a copy, iykyk πŸ’….

⚠️ lifetime warning, bestie: the view will only be valid until the containing document is destroyed or otherwise modified. do not get attached. periodt. πŸ’€

πŸ”₯ RETURNS πŸ”₯

Returns true if the view was successfully initialized. that's the return, and it ate πŸ‘‘.

πŸ‘€ SEE ALSO πŸ‘€

  • bson_vector_float32_const_view_from_iter()

🌸 AUTHOR 🌸

MongoDB, Inc

2009-present, MongoDB, Inc.


that's the whole page, bestie πŸ«ΆπŸ’– β€” source/version: libbson 2.5.6, footer date: Oct 09, 202… (the original footer is cut off mid-date, not me being messy 😭).

πŸ“¦ where this page comes from