[#BloombergLP-bdlma-BufferImpUtil-allocateNaturallyAlignedFromBufferRaw] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlma.adoc[bdlma]::xref:BloombergLP/bdlma/BufferImpUtil.adoc[BufferImpUtil]::allocateNaturallyAlignedFromBufferRaw :relfileprefix: ../../../ :mrdocs: Allocate a naturally‐aligned memory block of the specified `size` (in bytes) from the specified `buffer` at the specified `cursor` position. Return the address of the allocated memory block. The `cursor` is set to the first byte position immediately after the allocated memory. The behavior is undefined unless `0 < size`, `buffer` contains sufficient available memory, and `cursor` refers to a valid position in `buffer`. == Synopsis Declared in `<bdlma_bufferimputil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void* allocateNaturallyAlignedFromBufferRaw( xref:BloombergLP/bsls/Types/IntPtr.adoc[bsls::Types::IntPtr]* cursor, char* buffer, xref:BloombergLP/bsls/Types/size_type.adoc[bsls::Types::size_type] size); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#