Decode to the specified value from the specified streamBuf, consuming exactly the specified length bytes.
Declared in <balber_berutil.h>
static
int
getBoolValue(
bool* value,
std::streambuf* streamBuf,
int length);
Return 0 on success, and a non-zero value otherwise. This operations succeeds if length bytes are successfully read from the streamBuf and they contain a valid representation of the contents octets for a BER-encoded boolean value according to the specification.
0 on success, and a non-zero value otherwise
| Name | Description |
|---|---|
| value | destination for the decoded value |
| streamBuf | input stream buffer |
| length | number of content octets |