Encode the specified non‐modifiable value to the specified streamBuf. Return 0 on success, and a non‐zero value otherwise.

Synopsis

Declared in <balber_berencoder.h>

template<typename TYPE>
int
encode(
    std::streambuf* streamBuf,
    TYPE const& value);

Return Value

0 on success, and a non‐zero value otherwise

Parameters

Name

Description

streamBuf

output stream buffer

value

value to encode

Created with MrDocs