Decode an object of parameterized TYPE from the specified stream and load the result into the specified modifiable variable.
Declared in <balber_berdecoder.h>
template<typename TYPE>
int
decode(
std::istream& stream,
TYPE* variable);
Return 0 on success, and a non-zero value otherwise. If the decoding fails stream will be invalidated.
0 on success, and a non-zero value otherwise
| Name | Description |
|---|---|
| stream | input stream |
| variable | object to decode into |