BSON_REALLOC(3)
BSON_REALLOC π
okay so bestie, welcome to the BSON_REALLOC page from libbson β yes, the manual name is right there, we're being cute about it. This is the group chat where we talk about resizing memory without pretending it's glamorous. β¨
πΈ SYNOPSIS πΈ
void *
bson_realloc (void *mem, size_t num_bytes);
π PARAMETERS π
memβ a memory region. that's it, that's the vibe.num_bytesβ asize_tcontaining the new requested size. slay.
π DESCRIPTION π
This is a portable realloc() wrapper. portable, as in it's the wrapper you can take places.
If num_bytes is 0, then the allocation will be freed. bye-bye allocation π«Ά
If there was a failure to allocate num_bytes bytes, the process will be aborted. π like, full stop, no soft launch.
WARNING: This function will abort on failure to allocate memory. not a drill, bestie. π
π¦ RETURNS π¦
A pointer to a memory region which HAS NOT been zeroed. read that again: HAS NOT been zeroed. no clean slate, no free zeros, iykyk.
π AUTHOR π
MongoDB, Inc
π COPYRIGHT π
2009-present, MongoDB, Inc.
mwah π this iconic little page is from libbson 2.5.6, dated Oct 09, 2026. periodt.
π¦ 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