[#BloombergLP-bdlma-BufferManager-2constructor-0c6]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlma.adoc[bdlma]::xref:BloombergLP/bdlma/BufferManager.adoc[BufferManager]::BufferManager
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

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

Create a buffer manager for allocating memory blocks&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bdlma/BufferManager/2constructor-0c7.adoc[BufferManager](xref:BloombergLP/bsls/Alignment/Strategy.adoc[bsls::Alignment::Strategy] strategy = bsls&colon;&colon;Alignment&colon;&colon;BSLS&lowbar;NATURAL);
----

[.small]#xref:BloombergLP/bdlma/BufferManager/2constructor-0c7.adoc[_» more&period;&period;&period;_]#

Create a buffer manager that allocates from the specified external `buffer`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlma/BufferManager/2constructor-07.adoc[BufferManager](
    char* buffer,
    xref:BloombergLP/bsls/Types/size_type.adoc[bsls::Types::size&lowbar;type] bufferSize,
    xref:BloombergLP/bsls/Alignment/Strategy.adoc[bsls::Alignment::Strategy] strategy = bsls&colon;&colon;Alignment&colon;&colon;BSLS&lowbar;NATURAL);
----

[.small]#xref:BloombergLP/bdlma/BufferManager/2constructor-07.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *strategy*
| alignment strategy for allocated memory blocks
| *buffer*
| external buffer from which to allocate
| *bufferSize*
| size in bytes of `buffer`
|===


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