BloombergLP::balber::BerUtil_TimeImpUtil::getTimeOrTimeTzValue

Read the specified length number of bytes from the input sequence of the specified streamBuf and load to the specified value the time and optional time.

Synopsis

Declared in <balber_berutil.h>

static
int
getTimeOrTimeTzValue(
    TimeOrTimeTz* value,
    std::streambuf* streamBuf,
    int length);

Description

zone value represented by those bytes. Return 0 on success, 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 contain a valid representation of a time and optional time zone value. See the package-level documentation of {balber} for a description of the decision procedure used to detect the encoding format for a TimeOrTimeTz value.

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
valuedestination for the decoded value
streamBufinput stream buffer
lengthnumber of content octets