Class: FFI::StructByReference

Inherits:
Type
  • Object
show all
Defined in:
lib/ffi-compiler/fake_ffi/ffi.rb

Instance Attribute Summary

Attributes inherited from Type

#name

Instance Method Summary collapse

Constructor Details

#initialize(struct_class) ⇒ StructByReference

Returns a new instance of StructByReference.



19
20
21
# File 'lib/ffi-compiler/fake_ffi/ffi.rb', line 19

def initialize(struct_class)
  super("struct #{struct_class.to_s.gsub('::', '_')} *")
end