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

Allocate a 1&hyphen;byte&hyphen;aligned memory block of the specified `size` (in bytes) from the specified `buffer` at the specified `cursor` position&period; Return the address of the allocated memory block&period; The `cursor` is set to the first byte position immediately after the allocated memory&period; The behavior is undefined unless `0 &lt; size`, `buffer` contains sufficient available memory, and `cursor` refers to a valid position in `buffer`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void*
allocateOneByteAlignedFromBufferRaw(
    xref:BloombergLP/bsls/Types/IntPtr.adoc[bsls::Types::IntPtr]* cursor,
    char* buffer,
    xref:BloombergLP/bsls/Types/size_type.adoc[bsls::Types::size&lowbar;type] size);
----


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