Decode a BER real value into a double.

Synopsis

Declared in <balber_berutil.h>

static
int
getDoubleValue(
    double* value,
    std::streambuf* streamBuf,
    int length);

Description

bytes as the contents octets of a BER‐encoded real value according to the specification. Return 0 if successful, and a non‐zero value otherwise. The operation succeeds if length bytes are successfully read from the input sequence of the streamBuf without the read position becoming unavailable, and the bytes read contain a valid representation of the contents octets of a real 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