Return a contiguous block of memory of the specified size (in bytes).

Synopsis

Declared in <bdlma_buffermanager.h>

void*
allocateRaw(bsls::Types::size_type size);

Description

Return the address of a contiguous block of memory of the specified size (in bytes) according to the alignment strategy specified at construction. The behavior is undefined unless the allocation request does not exceed the remaining free memory space in the external buffer, 0 < size, and this object is currently managing a buffer.

Return Value

address of a contiguous block of size bytes

Parameters

Name

Description

size

number of bytes to allocate

Created with MrDocs