Encode the specified non‐modifiable value to the specified stream.

Synopsis

Declared in <balber_berencoder.h>

template<typename TYPE>
int
encode(
    std::ostream& stream,
    TYPE const& value);

Description

Return 0 on success, and a non‐zero value otherwise. If the encoding fails stream will be invalidated.

Return Value

0 on success, and a non‐zero value otherwise

Parameters

Name

Description

stream

output stream

value

value to encode

Created with MrDocs