struct UDataInfo
Defined at line 116 of file ../../third_party/icu/default/source/common/unicode/udata.h
UDataInfo contains the properties about the requested data.
This is meta data.
This structure may grow in the future, indicated by the
size
field.
ICU data must be at least 8-aligned, and should be 16-aligned.
The UDataInfo struct begins 4 bytes after the start of the data item,
so it is 4-aligned.
The platform data property fields help determine if a data
file can be efficiently used on a given machine.
The particular fields are of importance only if the data
is affected by the properties - if there is integer data
with word sizes > 1 byte, char* text, or UChar* text.
The implementation for the
udata_open[Choice]()
functions may reject data based on the value in
isBigEndian
.
No other field is used by the
udata
API implementation.
The
dataFormat
may be used to identify
the kind of data, e.g. a converter table.
The
formatVersion
field should be used to
make sure that the format can be interpreted.
It may be a good idea to check only for the one or two highest
of the version elements to allow the data memory to
get more or somewhat rearranged contents, for as long
as the using code can still interpret the older contents.
The
dataVersion
field is intended to be a
common place to store the source version of the data;
for data from the Unicode character database, this could
reflect the Unicode version.
ICU 2.0
Public Members
uint16_t size
uint16_t reservedWord
uint8_t isBigEndian
uint8_t charsetFamily
uint8_t sizeofUChar
uint8_t reservedByte
uint8_t[4] dataFormat
uint8_t[4] formatVersion
uint8_t[4] dataVersion