Class: Snow::CStruct::Builder::MemberStackLevel
- Inherits:
-
Struct
- Object
- Struct
- Snow::CStruct::Builder::MemberStackLevel
- Defined in:
- lib/snow-data/c_struct/builder.rb
Overview
Struct describing a level of a C struct. Contains a flag for whether the level is a union, its offset, alignment, size, and its members (which may include descendant levels).
Instance Attribute Summary collapse
-
#alignment ⇒ Object
Returns the value of attribute alignment.
-
#is_union ⇒ Object
Returns the value of attribute is_union.
-
#members ⇒ Object
Returns the value of attribute members.
-
#offset ⇒ Object
Returns the value of attribute offset.
-
#size ⇒ Object
Returns the value of attribute size.
Instance Attribute Details
#alignment ⇒ Object
Returns the value of attribute alignment
23 24 25 |
# File 'lib/snow-data/c_struct/builder.rb', line 23 def alignment @alignment end |
#is_union ⇒ Object
Returns the value of attribute is_union
23 24 25 |
# File 'lib/snow-data/c_struct/builder.rb', line 23 def is_union @is_union end |
#members ⇒ Object
Returns the value of attribute members
23 24 25 |
# File 'lib/snow-data/c_struct/builder.rb', line 23 def members @members end |
#offset ⇒ Object
Returns the value of attribute offset
23 24 25 |
# File 'lib/snow-data/c_struct/builder.rb', line 23 def offset @offset end |
#size ⇒ Object
Returns the value of attribute size
23 24 25 |
# File 'lib/snow-data/c_struct/builder.rb', line 23 def size @size end |