Module: SSW::FFI

Extended by:
Fiddle::Importer
Defined in:
lib/ssw/ffi.rb

Constant Summary collapse

Align =
struct [
  'uint16_t score1',
  'uint16_t score2',
  'int32_t ref_begin1',
  'int32_t ref_end1',
  'int32_t read_begin1',
  'int32_t read_end1',
  'int32_t ref_end2',
  'uint32_t* cigar',
  'int32_t cigarLen'
]
Profile =
struct [
  '__m128i* byte', # __m128i* profile_byte; // 0: none
  '__m128i* word', # __m128i* profile_word; // 0: none
  'const int8_t* read',
  'const int8_t* mat',
  'int32_t readLen',
  'int32_t n',
  'uint8_t bias'
]

Class Method Summary collapse

Class Method Details

.try_extern(signature, *opts) ⇒ Object



16
17
18
19
20
# File 'lib/ssw/ffi.rb', line 16

def try_extern(signature, *opts)
  extern(signature, *opts)
rescue StandardError => e
  warn "#{e.class.name}: #{e.message}"
end