Simple wrapper around nallocx
Declared in <folly/memory/Malloc.h>
size_t
goodMallocSize(size_t minSize) noexcept;
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/
size_t
| Name | Description |
|---|---|
| minSize | Requested size for allocation |