Class: Babeltrace::Definition

Defined in:
lib/babeltrace/types.rb

Overview

< FFI::Struct

Instance Method Summary collapse

Instance Method Details

#array_index(i) ⇒ Object



12
13
14
15
16
# File 'lib/babeltrace/types.rb', line 12

def array_index(i)
  d = Babeltrace.bt_array_index(self, i)
  return nil if d.null?
  self.class.new(d)
end

#sequence_index(i) ⇒ Object



22
23
24
25
26
# File 'lib/babeltrace/types.rb', line 22

def sequence_index(i)
  d = Babeltrace.bt_sequence_index(self, i)
  return nil if d.null?
  self.class.new(d)
end

#sequence_lenObject



18
19
20
# File 'lib/babeltrace/types.rb', line 18

def sequence_len
  Babeltrace.bt_sequence_len(self)
end