Class: Babeltrace::CTF::Internal::Declaration

Defined in:
lib/babeltrace/ctf/events.rb

Overview

< FFI::Struct

Instance Method Summary collapse

Instance Method Details

#field_typeObject



30
31
32
# File 'lib/babeltrace/ctf/events.rb', line 30

def field_type
  CTF.bt_ctf_field_type(self)
end

#get_array_lenObject



58
59
60
# File 'lib/babeltrace/ctf/events.rb', line 58

def get_array_len
  CTF.bt_ctf_get_array_len(self)
end

#get_encodingObject



54
55
56
# File 'lib/babeltrace/ctf/events.rb', line 54

def get_encoding
  CTF.bt_ctf_get_encoding(self)
end

#get_int_baseObject



42
43
44
# File 'lib/babeltrace/ctf/events.rb', line 42

def get_int_base
  CTF.bt_ctf_get_int_base(self)
end

#get_int_byte_orderObject



46
47
48
# File 'lib/babeltrace/ctf/events.rb', line 46

def get_int_byte_order
  CTF.bt_ctf_get_int_byte_order(self)
end

#get_int_lenObject



50
51
52
# File 'lib/babeltrace/ctf/events.rb', line 50

def get_int_len
  CTF.bt_ctf_get_int_len(self)
end

#get_int_signednessObject



34
35
36
# File 'lib/babeltrace/ctf/events.rb', line 34

def get_int_signedness
  CTF.bt_ctf_get_int_signedness(self)
end

#int_signed?Boolean

Returns:

  • (Boolean)


38
39
40
# File 'lib/babeltrace/ctf/events.rb', line 38

def int_signed?
  get_int_signedness == 1
end