Return a contiguous block of memory of the specified size (in bytes), or 0 on failure.
Synopsis
Declared in <bdlma_buffermanager.h>
void*
allocate(bsls::Types::size_type size);
Description
Return the address of a contiguous block of memory of the specified size (in bytes) on success, according to the alignment strategy specified at construction. If size is 0 or the allocation request exceeds the remaining free memory space in the external buffer, no memory is allocated and 0 is returned.
Return Value
address of a contiguous block of size bytes, or 0 on failure
Parameters
Name |
Description |
size |
number of bytes to allocate |
Created with MrDocs