struct

C0::Table

Inherits Struct / Value / Object

Zero-copy accessor for a tabular C0DATA group.

Scans the buffer once to index record positions, then provides O(1) access to records and fields as slices into the original buffer.

Constructors

new(buf : Bytes, offset : Int32 = 0)
Source

Instance methods

each_record

Iterate all records.

Source
header(i : Int32) : Bytes

Header field name by index.

Source
header_count

Number of header fields.

Source
headers

All header names.

Source
name

Group/table name as a slice into the buffer.

Source
record(i : Int32) : Record

Access a record by index. Returns a Record accessor.

Source
record_count

Number of records.

Source