Decode to the specified value from the specified streamBuf, consuming exactly the specified length bytes. 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.

Synopsis

Declared in <balber_berutil.h>

static
int
getBoolValue(
    bool* value,
    std::streambuf* streamBuf,
    int length);

Created with MrDocs