Note 1:
WORD data format is stored back to front.
E.g. Decimal value 13553
Hexadecimal value 34 F1
Stored as: F1 34
Note 2:
DateTime type is a packed binary format.
It contains YEAR-MONTH-DAY-hour-minute in the following format:
YYYYYYYYYYYY MMMM DDDDD hhhhh mmmmmm
e.g.:
11/27/2005, 13:37 is stored as:
2005 in binary on 12 bits is: 0111 1101 0101
11 in binary on 4 bits is: 1011
27 in binary on 4 bits is: 1 1011
13 in binary on 5 bits is: 0 1101
37 in binary on 6 bits is: 10 0101
Concatenating these we get: 0111 1101 0101 1011 1101 1011 0110 0101
In hexadecimal these become: 7D 5B DB 65, and gets stored back-to-front
It is stored as: 65 DB 5B 7D
Note 3:
Character strings are stored in character arrays, space not u
String to store: George
Gets stored on 20 chracters as:
Note 4:
Sex is decoded as:
Sex = 0 Not specified
Sex = 1 Male
Sex = 2 Female
Note 5:
Float numbers are stored on 4 bytes, according to the IEEE 745 standard
Note 6:
Vetmode stores the internal database identifier for the record. It is of no importance here.
Note 7:
Histogram representation. Each histogram is stored in an array of 256 bytes. Each byte represents the
histogram value at the given point, as a value from 0 to 255.
PLTlo lowest PLT volume. Actual volume: PLTlo x 50 fl / 256
PLThi highest PLT volume. Actual volume: PLThi x 50 fl / 256
RBClo lowest RBC volume. Actual volume: RBClo x 200 fl / 256
WBClo lowest WBC volume. Actual volume: WBClo x 400 fl / 256
LYMhi highest LYM volume. Actual volume: LYMhi x 400 fl / 256
GRAlo lowest GRA volume. Actual volume: GRAlo x 400 fl / 256