Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 997 Bytes

row-v1.md

File metadata and controls

24 lines (19 loc) · 997 Bytes

Row format v1

Archived format-1 specification. Current rows use aligned fields and binary floating-point values described in row v2. Version-1 records are rejected, including their former decimal-text floating representation.

All fixed-width fields are little-endian.

Offset Size Field
0 4 magic MSRW
4 2 format version = 1
6 2 schema version
8 2 column count
10 2 NULL-bitmap bytes
12 2 directory offset
14 2 reserved, zero

The NULL bitmap follows. Each directory entry is 8 bytes: type code, flags, value offset and value length, each U16. Values are packed contiguously in column order. Flags are 1 for SQL NULL and 2 for an external TEXT/BLOB pointer. Unused bitmap bits and unknown flags are zero.

M9 floating values are stored as validated canonical UTF-8 numeric renderings because the current MiniLang runtime has no stable float-bit cast; the format does not claim raw IEEE bits.