Decode an object referenced by variable from stream.
Synopsis
Declared in <balber_berdecoder.h>
int
decodeAny(
std::istream& stream,
bdlar::AnyRef* variable);
Description
Decode the object referenced by the specified variable from the specified stream. Return 0 on success, and a non‐zero value otherwise. If the decoding fails stream will be invalidated. Note that this function behaves identically to decode, but does not instantiate any templates at compile time at the expense of being slightly slower at runtime; see the balber package documentation for more details.
Return Value
0 on success, or a non‐zero value otherwise
Parameters
Name |
Description |
stream |
input stream |
variable |
object reference to decode into |
Created with MrDocs