Decode to the specified value from the specified streamBuf, consuming exactly the specified length bytes.
Synopsis
Declared in <balber_berutil.h>
static
int
getBoolValue(
bool* value,
std::streambuf* streamBuf,
int length);
Description
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.
Return Value
0 on success, and a non‐zero value otherwise
Parameters
Name |
Description |
value |
destination for the decoded value |
streamBuf |
input stream buffer |
length |
number of content octets |
Created with MrDocs