1BSON_MALLOC(3) libbson BSON_MALLOC(3)
2
3
4
6 void *
7 bson_malloc (size_t num_bytes);
8
10 • num_bytes: A size_t containing the number of bytes to allocate.
11
13 This is a portable malloc() wrapper.
14
15 In general, this function will return an allocation at least
16 sizeof(void*) bytes or bigger.
17
18 If there was a failure to allocate num_bytes bytes, the process will be
19 aborted.
20
21 WARNING:
22 This function will abort on failure to allocate memory.
23
25 A pointer to a memory region which HAS NOT been zeroed.
26
28 MongoDB, Inc
29
31 2017-present, MongoDB, Inc
32
33
34
35
361.25.1 Nov 08, 2023 BSON_MALLOC(3)