Module: FFI::StructArray
- Included in:
- FFI::Stat::TimeSpec
- Defined in:
- lib/ffi/struct_array.rb
Overview
Module to extend struct classes that are present in callbacks as fixed length arrays
Instance Method Summary collapse
-
#array(size) ⇒ DataConverter
(also: #[])
Generate a one way converter for a fixed size array of struct.
Instance Method Details
#array(size) ⇒ DataConverter Also known as: []
Generate a one way converter for a fixed size array of struct
10 11 12 |
# File 'lib/ffi/struct_array.rb', line 10 def array(size) ArrayConverter.new(self, size) end |