Class: Snow::CStruct::StructMemberInfo

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#alignmentObject

Returns the value of attribute alignment

Returns:

  • (Object)

    the current value of alignment



22
23
24
# File 'lib/snow-data/c_struct.rb', line 22

def alignment
  @alignment
end

#lengthObject

Returns the value of attribute length

Returns:

  • (Object)

    the current value of length



22
23
24
# File 'lib/snow-data/c_struct.rb', line 22

def length
  @length
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



22
23
24
# File 'lib/snow-data/c_struct.rb', line 22

def name
  @name
end

#offsetObject

Returns the value of attribute offset

Returns:

  • (Object)

    the current value of offset



22
23
24
# File 'lib/snow-data/c_struct.rb', line 22

def offset
  @offset
end

#sizeObject

Returns the value of attribute size

Returns:

  • (Object)

    the current value of size



22
23
24
# File 'lib/snow-data/c_struct.rb', line 22

def size
  @size
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



22
23
24
# File 'lib/snow-data/c_struct.rb', line 22

def type
  @type
end