C0::Record
Zero-copy accessor for a single record within a table. Fields are accessed by index, returning slices into the original buffer.
Constructors
Instance methods
Access field by index. Scans for the Nth US separator. Respects STX/ETX nesting — US inside nested scopes is not a boundary.
field_count
Number of fields in this record. Respects STX/ETX nesting — US inside nested scopes is not counted.
Field n as a flat list: the items of its STX/ETX scope split on
top-level US, each DLE-unescaped (mirrors #value). Inverse of
Builder#list_field. A field that is not an STX/ETX scope is
returned as a single-item list holding its value; an empty scope
is an empty list.
Logical bytes of field n: the raw slice with DLE escapes decoded. Zero-copy when the field contains no escapes.