BSON_ITER_DUP_UTF8(3)
π BSON_ITER_DUP_UTF8(3) π
okay so this is a libbson manual page, and we are literally about to make friends with bson_iter_dup_utf8(). stay with me bestie, itβs giving βtiny function, very usefulβ energy β¨
SYNOPSIS πΈ
char *
bson_iter_dup_utf8 (const bson_iter_t *iter, uint32_t *length);
PARAMETERS π
iterβ abson_iter_t. yep, thatβs the iterator bestie.lengthβ an optional location for the length of the UTF-8 encoded string. optional, so no pressure, but itβs there if you need it π
DESCRIPTION π¦
so this function is similar to bson_iter_utf8() β like, same vibe β except that it calls bson_strndup() on the result. thatβs the whole glow-up. no cap. π
RETURNS β¨
it returns a newly allocated string that should be freed with bson_free(). yes bestie, newly allocated means you gotta free it. donβt leave it hanging ππ«Ά
AUTHOR π
MongoDB, Inc
COPYRIGHT π
2009-present, MongoDB, Inc.
xoxo, your libbson bestie π this was version 2.5.6, dated Oct 09, 2026 β slay and read the docs responsibly π
π¦ 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