BloombergLP::baltzo::ZoneinfoBinaryReader::read

read overloads

Synopses

Declared in <baltzo_zoneinfobinaryreader.h>

Read time zone information from the specified stream, and load the description into the specified zoneinfoResult. The zoneinfoResult will have a sentinel transition at 01-01-001, meeting the first two requirements for a "well-formed" object (see baltzo::ZoneinfoUtil::isWellFormed documentation). Return 0 on success and a non-zero value if stream does not provide a sequence of bytes consistent with the Zoneinfo binary format. If an error occurs during the operation, zoneinfoResult is unspecified. Optionally specify a headerResult that, on success, will be populated with a summary of the stream contents.

static
int
read(
    Zoneinfo* zoneinfoResult,
    std::istream& stream);
» more...

Read time zone information and load the header summary.

static
int
read(
    Zoneinfo* zoneinfoResult,
    ZoneinfoBinaryHeader* headerResult,
    std::istream& stream);
» more...