Encode the specified non-modifiable value to the specified streamBuf.
Declared in <balber_berencoder.h>
template<typename TYPE>
int
encodeAny(
std::streambuf* streamBuf,
TYPE const& value);
Return 0 on success, and a non-zero value otherwise. Note that this function behaves identically to encode, 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.
0 on success, and a non-zero value otherwise
| Name | Description |
|---|---|
| streamBuf | output stream buffer |
| value | value to encode |