Simple wrapper around nallocx
Synopsis
Declared in <folly/memory/Malloc.h>
size_t
goodMallocSize(size_t minSize) noexcept;
Description
The nallocx function allocates no memory, but it performs the same size computation as the malloc function, and returns the real size of the allocation that would result from the equivalent malloc function call.
https://www.unix.com/man‐page/freebsd/3/nallocx/
Return Value
size_t
Parameters
Name |
Description |
minSize |
Requested size for allocation |
Created with MrDocs