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



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

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

.union_layout(*args) ⇒ Object



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

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