BSON_VECTOR_FLOAT32_VIEW_READ(3)

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

πŸ’… BSON_VECTOR_FLOAT32_VIEW_READ(3) β€” the libbson glow-up πŸŽ€

ok so bestie, this one is a page from libbson, and it's literally the function bson_vector_float32_view_read. It copies a contiguous block of elements out of a bson_vector_float32_view_t and drops them straight into a C array of float. bulk copy energy, no cap ✨


🌸 SYNOPSIS 🌸

bool
bson_vector_float32_view_read (bson_vector_float32_view_t view,
                               float *values_out,
                               size_t element_count,
                               size_t vector_offset_elements);

look at her. she's giving "returns a bool, takes four args", main character behavior fr 🫢


πŸ¦‹ PARAMETERS πŸ¦‹

  • view β€” a valid bson_vector_float32_view_t. it's the source bestie, the place we're reading from πŸ’–
  • values_out β€” where the float elements get read to. the destination. the moment. the slay πŸ’…
  • element_count β€” the number of elements to read. how many we're taking ✨
  • vector_offset_elements β€” the vector index of the first element to read. like, where we start in the vector, iykyk πŸŽ€

πŸ‘‘ DESCRIPTION πŸ‘‘

Elements are copied in bulk from the view to the provided output pointer. that's it, that's the whole vibe β€” bulk copy, no element-by-element drama, periodt πŸ”₯


⭐ RETURNS ⭐

so if element_count and vector_offset_elements overflow the bounds of the Vector, it returns false without taking any other action β€” like, nothing else happens, it just says nope πŸ™ˆ

if the parameters are in range, this is guaranteed to succeed (iconic, reliable, lowkey obsessed). on success it returns true and reads element_count elements into *values_out πŸ¦‹

⚠️ heads up bestie: out-of-bounds params = false and literally nothing else. don't go expecting partial reads or anything cute like that πŸ’€

🌈 SEE ALSO 🌈

  • bson_vector_float32_const_view_read()

go read her sister page too, she's also serving 🫢


πŸ’œ AUTHOR πŸ’œ

MongoDB, Inc β€” the ones who wrote her πŸ’–

2009-present, MongoDB, Inc.


and that's the page, bestie! ✨ this was libbson version 2.5.6, dated Oct 09, 2026 β€” no cap, go forth and copy your floats in bulk πŸ’…πŸŒΈπŸ¦‹

πŸ“¦ where this page comes from