Encode the specified value to the specified streamBuf.

Synopsis

Declared in <balber_berutil.h>

template<typename TYPE>
static
int
putValue(
    std::streambuf* streamBuf,
    TYPE const& value,
    BerEncoderOptions const* options = 0);

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

Name

Description

streamBuf

output stream buffer

value

value to encode

options

encoder options (0 for defaults)

Created with MrDocs