BSON_ITER_DOCUMENT(3)
π BSON_ITER_DOCUMENT(3) β libbson says hiii, bestie β¨
πΈ SYNOPSIS πΈ
#define BSON_ITER_HOLDS_DOCUMENT(iter) \
(bson_iter_type ((iter)) == BSON_TYPE_DOCUMENT)
void
bson_iter_document (const bson_iter_t *iter,
uint32_t *document_len,
const uint8_t **document);
π PARAMETERS π
iterβ abson_iter_t. Thatβs your iterator bestie. π«Άdocument_lenβ a location for the length of the document in bytes. Yes, bytes, not vibes. πdocumentβ a location for the document buffer. π
π¦ DESCRIPTION π¦
okay so the bson_iter_document() function shall retrieve the raw buffer of a sub-document from iter β thatβs the whole assignment, bestie. π
π¨ MUST alert:iterMUST be on an element that is of typeBSON_TYPE_DOCUMENT. Uppercase MUST, bestie β this is not optional, no cap. π
You can verify that with bson_iter_type() or the BSON_ITER_HOLDS_DOCUMENT() macro. Slay. β¨
π AUTHOR π
MongoDB, Inc
π COPYRIGHT π
2009-present, MongoDB, Inc.
mwah π β this page is from libbson 2.5.6, dated Oct 09, 2026. byeeeee π«Ά
π¦ 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