[#BloombergLP-balber-BerUtil-putValue] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::xref:BloombergLP/balber/BerUtil.adoc[BerUtil]::putValue :relfileprefix: ../../../ :mrdocs: Encode the specified `value` to the specified `streamBuf`. 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. == 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 = 0); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#