[#BloombergLP-balber-BerUtil_PutValueImpUtil-putValue-0e5] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::xref:BloombergLP/balber/BerUtil_PutValueImpUtil.adoc[BerUtil_PutValueImpUtil]::putValue :relfileprefix: ../../../ :mrdocs: Encode the specified `value` to the specified `streamBuf`. == Synopsis Declared in `<balber_berutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename TYPE> static int putValue( std::streambuf* streamBuf, TYPE const& value, xref:BloombergLP/balber/BerEncoderOptions.adoc[BerEncoderOptions] const* options); ---- == Description Return 0 on success, and a non‐zero value otherwise. Note that the value consists of the length and contents primitives. Also note that only fundamental C++ types, `bsl::string`, `bsl::string_view`, `bslstl::StringRef` and BDE date/time types are supported. == Return Value 0 on success, and a non‐zero value otherwise == Parameters [cols="1,4"] |=== | Name| Description | *streamBuf* | output stream buffer | *value* | value to encode | *options* | encoder options (0 for defaults) |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#