Float RAW
Float RAW stores each value as the 64 bits of its IEEE 754 double, in little-endian order. It is codec id 0 in FloatCol.
Layout
Section titled “Layout”| Field | Encoding | Meaning |
|---|---|---|
| codec | u8 | 0 |
| count | varint | number of values |
| values | count x u64 LE | the bit pattern of each f64 |
Note that the codec comes before the count in FloatCol.
How to decode
Section titled “How to decode”- Read the codec byte. It is 0.
- Read
countand check it against its limit. - Read
countlittle-endian 64-bit words. Each is the bit pattern of one float.
Illustration
Section titled “Illustration”Derived by hand, not from a real file. The values 1.0 (0x3FF0000000000000) and 2.0 (0x4000000000000000):
00 02 codec RAW, count 200 00 00 00 00 00 F0 3F 1.000 00 00 00 00 00 00 40 2.0Checks
Section titled “Checks”countis within its limit.- The input holds
8 x countbytes after the count.
When writers pick it
Section titled “When writers pick it”See How writers choose a codec.