The template
HLAbasicType<DATATYPE, STORAGE, ENCODING>
defines a user-convenient DATATYPE
, stored in STORAGE
using given ENCODING
.
The data are stored in a buffer of sizeof(STORAGE).
The buffer is casted to a DATATYPE that provide data access operators. The data can be accessed in an usual way. The DATATYPE may have any sizeof(), but must have static-cast to STORAGE.
For example:
typedef HLAbasicType<long, uint32_t, LittleEndian> HLAinteger32BE; HLAdata<HLAinteger32BE> value; value = 42;