Class: FFI::Union
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Struct
|
|
Instance Chain:
self,
Struct
|
|
Inherits: |
FFI::Struct
|
Defined in: | lib/ffi/union.rb |
Class Attribute Summary
Class Method Summary
Struct
- Inherited
.alignment, .auto_ptr, .by_ref, .by_value, .in, .layout, .members, | |
.offset_of | Get the offset of a field. |
.offsets | Get an array of tuples (field name, offset of the field). |
.out, .ptr, .val, | |
.array_layout | Add array |
.hash_layout | Add hash |
Instance Method Summary
Struct
- Inherited
#align | Alias for Struct#alignment. |
#alignment, | |
#clear | Clear the struct content. |
#members, | |
#offset_of | Get the offset of a field. |
#offsets | Get an array of tuples (field name, offset of the field). |
#size | Get struct size. |
#to_ptr | Get |
#values | Get array of values from |
Class Method Details
.builder
[ GitHub ]# File 'lib/ffi/union.rb', line 37
def self.builder b = StructLayoutBuilder.new b.union = true b end