getValue overloads

Synopses

Declared in <balber_berutil.h>

Read 2 bytes from the input sequence of the specified streamBuf and load to the specified value the interpretation of those bytes as an extended‐binary.

static
int
getValue(
    Header* value,
    std::streambuf* streamBuf);

Load to the specified value the interpretation of the specified headerByte0 and headerByte1 as the 2 bytes that comprise an encoded extended‐binary.

static
int
getValue(
    Header* value,
    unsigned char headerByte0,
    unsigned char headerByte1);

Return Value

0 on success, and a non‐zero value otherwise

Parameters

Name

Description

value

destination for the decoded value

streamBuf

input stream buffer

headerByte0

first byte of an extended‐binary header

headerByte1

second byte of an extended‐binary header

Created with MrDocs