Class: Schema::Node::GroupStruct
Constant Summary
collapse
- DEFAULT_DATA_WORD_COUNT =
0
- DEFAULT_POINTER_COUNT =
0
- DEFAULT_IS_GROUP =
false
- DEFAULT_DISCRIMINANT_COUNT =
0
- DEFAULT_DISCRIMINANT_OFFSET =
0
Instance Method Summary
collapse
decode_pointer, from_pointer, #initialize
Constructor Details
This class inherits a constructor from Capnp::Struct
Instance Method Details
#data_word_count ⇒ Object
38
|
# File 'lib/capnp/generator/schema.capnp.rb', line 38
def data_word_count = read_u16(14, 0)
|
#discriminant_count ⇒ Object
50
|
# File 'lib/capnp/generator/schema.capnp.rb', line 50
def discriminant_count = read_u16(30, 0)
|
#discriminant_offset ⇒ Object
53
|
# File 'lib/capnp/generator/schema.capnp.rb', line 53
def discriminant_offset = read_u32(32, 0)
|
#is_group ⇒ Object
47
|
# File 'lib/capnp/generator/schema.capnp.rb', line 47
def is_group = (read_u8(28, 0x00) & 0x1) != 0
|
#pointer_count ⇒ Object
41
42
|
# File 'lib/capnp/generator/schema.capnp.rb', line 41
def pointer_count = read_u16(24, 0)
|
#preferred_list_encoding ⇒ Object
#to_obj ⇒ Object
57
58
59
60
61
62
63
64
65
66
67
|
# File 'lib/capnp/generator/schema.capnp.rb', line 57
def to_obj
res = {}
res["data_word_count"] = data_word_count
res["pointer_count"] = pointer_count
res["preferred_list_encoding"] = preferred_list_encoding
res["is_group"] = is_group
res["discriminant_count"] = discriminant_count
res["discriminant_offset"] = discriminant_offset
res["fields"] = fields&.to_obj
res
end
|