BloombergLP::bdlma::BufferImpUtil

This struct provides a namespace for a suite of pure procedures for allocating memory from a buffer.

Synopsis

Declared in <bdlma_bufferimputil.h>

struct BufferImpUtil;

Static Member Functions

NameDescription
allocateFromBuffer Allocate a memory block from a buffer using the specified alignment strategy.
allocateFromBufferRaw Allocate a memory block from a buffer using the specified alignment strategy, without checking capacity.
allocateMaximallyAlignedFromBuffer Allocate a maximally-aligned memory block from a buffer.
allocateMaximallyAlignedFromBufferRaw Allocate a maximally-aligned memory block from a buffer, without checking capacity.
allocateNaturallyAlignedFromBuffer Allocate a naturally-aligned memory block from a buffer.
allocateNaturallyAlignedFromBufferRaw Allocate a naturally-aligned memory block from a buffer, without checking capacity.
allocateOneByteAlignedFromBuffer Allocate a 1-byte-aligned memory block from a buffer.
allocateOneByteAlignedFromBufferRaw Allocate a 1-byte-aligned memory block from a buffer, without checking capacity.