BSON_MEMORY(3) libbson BSON_MEMORY(3) BSON Memory Abstraction. DESCRIPTION Libbson contains a lightweight memory abstraction to make portability to new platforms easier. Additionally, it helps us integrate with interesting higher-level languages. One caveat, however, is that Libbson is not de- signed to deal with Out of Memory (OOM) situations. Doing so requires ex- treme diligence throughout the application stack that has rarely been im- plemented correctly. This may change in the future. As it stands now, Libb- son will abort() under OOM situations. To aid in language binding integration, Libbson allows for setting a custom memory allocator via bson_mem_set_vtable(). This allocation may be re- versed via bson_mem_restore_vtable(). AUTHOR MongoDB, Inc COPYRIGHT 2009-present, MongoDB, Inc. 1.30.8 Aug 27, 2026 BSON_MEMORY(3)
DESCRIPTION | AUTHOR | COPYRIGHT
Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=bson_memory&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>
