[#BloombergLP-ball-Logger-obtainMessageBuffer-04]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/Logger.adoc[Logger]::obtainMessageBuffer
:relfileprefix: ../../../
:mrdocs:

`obtainMessageBuffer` overloads

== Synopses

Declared in `&lt;ball&lowbar;loggermanager&period;h&gt;`

Return a managed pointer to this thread&apos;s exclusive message buffer&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslma/ManagedPtr-0fa.adoc[bslma::ManagedPtr&lt;char&gt;]
xref:BloombergLP/ball/Logger/obtainMessageBuffer-00.adoc[obtainMessageBuffer](int* bufferSize);
----

[.small]#xref:BloombergLP/ball/Logger/obtainMessageBuffer-00.adoc[_» more&period;&period;&period;_]#

Return exclusive access to this logger&apos;s message formatting buffer&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
char*
xref:BloombergLP/ball/Logger/obtainMessageBuffer-0c.adoc[obtainMessageBuffer](
    xref:BloombergLP/bslmt/Mutex.adoc[bslmt::Mutex]** mutex,
    int* bufferSize);
----

[.small]#xref:BloombergLP/ball/Logger/obtainMessageBuffer-0c.adoc[_» more&period;&period;&period;_]#

== Return Value

* managed pointer referring to this thread&apos;s exclusive message buffer
* address of the modifiable buffer to which this thread has exclusive access

== Parameters

[cols="1,4"]
|===
| Name| Description
| *bufferSize*
| address at which to store the buffer size in bytes
| *mutex*
| address at which to store the buffer&hyphen;protecting mutex
|===


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