[#BloombergLP-bdld-Datum-createUninitializedString]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdld.adoc[bdld]::xref:BloombergLP/bdld/Datum.adoc[Datum]::createUninitializedString
:relfileprefix: ../../../
:mrdocs:

Create an uninitialized string buffer and load a datum referring to it&period;

== Synopsis

Declared in `&lt;bdld&lowbar;datum&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
char*
createUninitializedString(
    xref:BloombergLP/bdld/Datum.adoc[Datum]* result,
    xref:BloombergLP/bdld/Datum/SizeType.adoc[SizeType] length,
    xref:BloombergLP/bdld/Datum/AllocatorType.adoc[AllocatorType] const& allocator);
----

== Description

Load the specified `result` with a reference to a newly created character buffer of the specified `length`, using the specified `allocator` to supply memory, and return the address of this buffer&period; The behavior is undefined unless `length &lt;&equals; UINT&lowbar;MAX`&period; Note that the caller is responsible for initializing the returned buffer with a UTF&hyphen;8 encoded string&period;

== Return Value

the address of the uninitialized character buffer

== Parameters

[cols="1,4"]
|===
| Name| Description
| *result*
| receives the datum that refers to the buffer
| *length*
| length of the character buffer in bytes
| *allocator*
| memory allocator to use
|===


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