Class: FFI::StructLayout
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/ffi-1.15.5/lib/ffi/struct_layout.rb
Defined Under Namespace
Classes: Enum, InnerStruct, Mapped
Instance Method Summary collapse
-
#offset_of(field_name) ⇒ Numeric
Get the offset of a field.
-
#offsets ⇒ Array<Array(Symbol, Numeric)>
Get an array of tuples (field name, offset of the field).
Instance Method Details
#offset_of(field_name) ⇒ Numeric
Get the offset of a field.
46 47 48 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/ffi-1.15.5/lib/ffi/struct_layout.rb', line 46 def offset_of(field_name) self[field_name].offset end |