[#BloombergLP-bdlma-BufferImpUtil]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlma.adoc[bdlma]::BufferImpUtil
:relfileprefix: ../../
:mrdocs:

This `struct` provides a namespace for a suite of pure procedures for allocating memory from a buffer&period;

== Synopsis

Declared in `&lt;bdlma&lowbar;bufferimputil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct BufferImpUtil;
----

== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlma/BufferImpUtil/allocateFromBuffer.adoc[`allocateFromBuffer`] 
| Allocate a memory block from a buffer using the specified alignment strategy&period;
| xref:BloombergLP/bdlma/BufferImpUtil/allocateFromBufferRaw.adoc[`allocateFromBufferRaw`] 
| Allocate a memory block from a buffer using the specified alignment strategy, without checking capacity&period;
| xref:BloombergLP/bdlma/BufferImpUtil/allocateMaximallyAlignedFromBuffer.adoc[`allocateMaximallyAlignedFromBuffer`] 
| Allocate a maximally&hyphen;aligned memory block from a buffer&period;
| xref:BloombergLP/bdlma/BufferImpUtil/allocateMaximallyAlignedFromBufferRaw.adoc[`allocateMaximallyAlignedFromBufferRaw`] 
| Allocate a maximally&hyphen;aligned memory block from a buffer, without checking capacity&period;
| xref:BloombergLP/bdlma/BufferImpUtil/allocateNaturallyAlignedFromBuffer.adoc[`allocateNaturallyAlignedFromBuffer`] 
| Allocate a naturally&hyphen;aligned memory block from a buffer&period;
| xref:BloombergLP/bdlma/BufferImpUtil/allocateNaturallyAlignedFromBufferRaw.adoc[`allocateNaturallyAlignedFromBufferRaw`] 
| Allocate a naturally&hyphen;aligned memory block from a buffer, without checking capacity&period;
| xref:BloombergLP/bdlma/BufferImpUtil/allocateOneByteAlignedFromBuffer.adoc[`allocateOneByteAlignedFromBuffer`] 
| Allocate a 1&hyphen;byte&hyphen;aligned memory block from a buffer&period;
| xref:BloombergLP/bdlma/BufferImpUtil/allocateOneByteAlignedFromBufferRaw.adoc[`allocateOneByteAlignedFromBufferRaw`] 
| Allocate a 1&hyphen;byte&hyphen;aligned memory block from a buffer, without checking capacity&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
