BSON_JSON_DATA_READER_INGEST(3)

πŸ’… BSON_JSON_DATA_READER_INGEST(3) πŸ’…

okay bestie, so this is a page from the libbson manual and honestly? it's a little one but it's important, so let's get into it 🫢


✨ SYNOPSIS ✨

void
bson_json_data_reader_ingest (bson_json_reader_t *reader,
                              const uint8_t *data,
                              size_t len);

that's it. that's the whole vibe. no return value, she just does the thing πŸ’…


πŸŽ€ PARAMETERS πŸŽ€

  • reader β€” a bson_json_reader_t. the main character of this whole operation, lowkey πŸ‘‘
  • data β€” a uint8_t containing data to feed. yes literally, that's the description, we're feeding her πŸ“
  • len β€” a size_t containing the length of data. she needs to know how much snack to hand over, iykyk

πŸ¦‹ DESCRIPTION πŸ¦‹

feed data to a memory based json reader. that's the whole assignment. you hand reader some data that's len bytes long, and she ingests it. slay. periodt. ✨

ngl this is the "memory based" json reader we're talking about here, so keep that in mind β€” it's not out here reading files off your disk, bestie πŸ’€

🌸 AUTHOR 🌸

MongoDB, Inc β€” iconic, we stan 🫢


2009-present, MongoDB, Inc. fr fr.


okay that's the page!! version 2.5.6, dated Oct 09, 2026 β€” write it down, take a screenshot, tattoo it on your arm, whatever works for you πŸ§šπŸ’œ love u, go ingest some json responsibly 😭πŸ”₯

πŸ“¦ where this page comes from