Quick Links: |
#include <baltzo_zoneinfobinaryreader.h>
Static Public Member Functions | |
static int | read (Zoneinfo *zoneinfoResult, bsl::istream &stream) |
static int | read (Zoneinfo *zoneinfoResult, ZoneinfoBinaryHeader *headerResult, bsl::istream &stream) |
This struct provides a namespace for functions that read Zoneinfo time zone data from a binary input stream. The primary method, read
, makes use of a stream containing a Zoneinfo time zone database to populate a Zoneinfo
object.
See Component baltzo_zoneinfobinaryreader
static int baltzo::ZoneinfoBinaryReader::read | ( | Zoneinfo * | zoneinfoResult, | |
bsl::istream & | stream | |||
) | [static] |
static int baltzo::ZoneinfoBinaryReader::read | ( | Zoneinfo * | zoneinfoResult, | |
ZoneinfoBinaryHeader * | headerResult, | |||
bsl::istream & | stream | |||
) | [static] |
Read time zone information from the specified stream
, and load the description into the specified zoneinfoResult
. 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.