BSON_VECTOR_FLOAT32_VIEW_READ(3)
π 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 validbson_vector_float32_view_t. it's the source bestie, the place we're reading from πvalues_outβ where thefloatelements 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 π
π COPYRIGHT π
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
- 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