struct C0::Group

Overview

A group within a document. Can be accessed as a Table or iterated for document-mode content.

Defined in:

c0/document.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(buf : Bytes, start : Int32, end __arg0 : Int32) #

[View source]

Instance Method Detail

def each_record(& : Record -> ) : Nil #

Iterate records directly (convenience for key-value groups).


[View source]
def has_header? : Bool #

Check if this group has an SOH header.


[View source]
def name : Bytes #

Group name.


[View source]
def raw : Bytes #

Raw bytes of this group.


[View source]
def record(i : Int32) : Record #

Access record by index.


[View source]
def record_count : Int32 #

Number of records.


[View source]
def table : Table #

Access as a Table (for tabular/key-value data).


[View source]