[#BloombergLP-balber-BerUtil_StringImpUtil-putStringValue]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::xref:BloombergLP/balber/BerUtil_StringImpUtil.adoc[BerUtil&lowbar;StringImpUtil]::putStringValue
:relfileprefix: ../../../
:mrdocs:

Write the length and contents octets of the BER encoding of the specified character string `value` (as defined in the specification) to the output sequence of the specified `streamBuf`&period; Return 0 if successful, and a non&hyphen;zero value otherwise&period; The operation succeeds if all bytes corresponding to the length and contents octets are written to the `streamBuf` without the write position becoming unavailable&period;

== Synopsis

Declared in `&lt;balber&lowbar;berutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
putStringValue(
    std::streambuf* streamBuf,
    xref:bsl/string.adoc[bsl::string] const& value);
----


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