Allocate a size‐byte buffer with std::malloc, throwing on failure.
Synopsis
Declared in <folly/Memory.h>
SysBufferUniquePtr
allocate_sys_buffer(std::size_t size);
Return Value
A unique_ptr owning the allocated buffer.
Parameters
Name |
Description |
size |
The number of bytes to allocate. |
Created with MrDocs