Class: FFI::StructGenerator::Field
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/ffi/tools/struct_generator.rb |
Overview
A field in a ::FFI::Struct
.
Class Method Summary
- .new(name, type) ⇒ Field constructor
Instance Attribute Summary
- #name readonly
- #offset rw
- #offset=(o) rw
- #size rw
- #type readonly
Instance Method Summary
Constructor Details
.new(name, type) ⇒ Field
Instance Attribute Details
#name (readonly)
[ GitHub ]# File 'lib/ffi/tools/struct_generator.rb', line 168
attr_reader :name
#offset (rw)
[ GitHub ]# File 'lib/ffi/tools/struct_generator.rb', line 170
attr_reader :offset
#offset=(o) (rw)
[ GitHub ]# File 'lib/ffi/tools/struct_generator.rb', line 180
def offset=(o) @offset = o end
#size (rw)
[ GitHub ]# File 'lib/ffi/tools/struct_generator.rb', line 171
attr_accessor :size
#type (readonly)
[ GitHub ]# File 'lib/ffi/tools/struct_generator.rb', line 169
attr_reader :type