Skip to content

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.

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.

  1. Read the codec byte. It is 0.
  2. Read count and check it against its limit.
  3. Read count little-endian 64-bit words. Each is the bit pattern of one float.

Derived by hand, not from a real file. The values 1.0 (0x3FF0000000000000) and 2.0 (0x4000000000000000):

00 02 codec RAW, count 2
00 00 00 00 00 00 F0 3F 1.0
00 00 00 00 00 00 00 40 2.0
  • count is within its limit.
  • The input holds 8 x count bytes after the count.

See How writers choose a codec.