Class: Snow::CStruct::StructMemberInfo
- Inherits:
-
Struct
- Object
- Struct
- Snow::CStruct::StructMemberInfo
- Defined in:
- lib/snow-data/c_struct.rb
Overview
Info for a struct member. Defines a member’s name, type, size, length, alignment, and offset.
The type member of this may not be an alias of another type.
Instance Attribute Summary collapse
-
#alignment ⇒ Object
Returns the value of attribute alignment.
-
#length ⇒ Object
Returns the value of attribute length.
-
#name ⇒ Object
Returns the value of attribute name.
-
#offset ⇒ Object
Returns the value of attribute offset.
-
#size ⇒ Object
Returns the value of attribute size.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Attribute Details
#alignment ⇒ Object
Returns the value of attribute alignment
22 23 24 |
# File 'lib/snow-data/c_struct.rb', line 22 def alignment @alignment end |
#length ⇒ Object
Returns the value of attribute length
22 23 24 |
# File 'lib/snow-data/c_struct.rb', line 22 def length @length end |
#name ⇒ Object
Returns the value of attribute name
22 23 24 |
# File 'lib/snow-data/c_struct.rb', line 22 def name @name end |
#offset ⇒ Object
Returns the value of attribute offset
22 23 24 |
# File 'lib/snow-data/c_struct.rb', line 22 def offset @offset end |
#size ⇒ Object
Returns the value of attribute size
22 23 24 |
# File 'lib/snow-data/c_struct.rb', line 22 def size @size end |
#type ⇒ Object
Returns the value of attribute type
22 23 24 |
# File 'lib/snow-data/c_struct.rb', line 22 def type @type end |