Class: Snow::CStruct::Builder::MemberStackLevel

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

Instance Attribute Details

#alignmentObject

Returns the value of attribute alignment

Returns:

  • (Object)

    the current value of alignment



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

def alignment
  @alignment
end

#is_unionObject

Returns the value of attribute is_union

Returns:

  • (Object)

    the current value of is_union



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

def is_union
  @is_union
end

#membersObject

Returns the value of attribute members

Returns:

  • (Object)

    the current value of members



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

def members
  @members
end

#offsetObject

Returns the value of attribute offset

Returns:

  • (Object)

    the current value of offset



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

def offset
  @offset
end

#sizeObject

Returns the value of attribute size

Returns:

  • (Object)

    the current value of size



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

def size
  @size
end