Class: FFI::Struct

Inherits:
Object
  • Object
show all
Defined in:
lib/hts/ffi.rb

Class Method Summary collapse

Class Method Details

.struct_layout(*args) ⇒ Object



28
29
30
# File 'lib/hts/ffi.rb', line 28

def struct_layout(*args)
  Class.new(FFI::Struct) { layout(*args) }
end

.union_layout(*args) ⇒ Object



24
25
26
# File 'lib/hts/ffi.rb', line 24

def union_layout(*args)
  Class.new(FFI::Union) { layout(*args) }
end