C0::Document
Inherits Struct / Value / Object
Zero-copy navigator for a full C0DATA document.
Walks an entire buffer containing FS/GS/RS/US structure and provides access to files, groups, records, and fields as slices into the original buffer.
Example: doc = C0::Document.new(buf) doc.name # => "mydb" doc.groups.size # => 2 doc.group("users") # => Group doc.group("users").table # => Table doc["users"] # => Group (shortcut)
Constructors
new(buf : Bytes)
Source