Class: Babeltrace::CTF::IntegerDecl

Inherits:
Declaration show all
Defined in:
lib/babeltrace/ctf/events.rb

Instance Attribute Summary

Attributes inherited from Declaration

#declaration

Instance Method Summary collapse

Methods inherited from Declaration

create, #field_type, #initialize

Constructor Details

This class inherits a constructor from Babeltrace::CTF::Declaration

Instance Method Details

#baseObject



492
493
494
# File 'lib/babeltrace/ctf/events.rb', line 492

def base
  @declaration.get_int_base
end

#byte_orderObject



496
497
498
# File 'lib/babeltrace/ctf/events.rb', line 496

def byte_order
  @declaration.get_int_byte_order
end

#def_classObject



484
485
486
# File 'lib/babeltrace/ctf/events.rb', line 484

def def_class
  IntegerDef
end

#encodingObject



504
505
506
# File 'lib/babeltrace/ctf/events.rb', line 504

def encoding
  @declaration.get_encoding
end

#lenObject



500
501
502
# File 'lib/babeltrace/ctf/events.rb', line 500

def len
  @declaration.get_int_len
end

#signed?Boolean

Returns:

  • (Boolean)


488
489
490
# File 'lib/babeltrace/ctf/events.rb', line 488

def signed?
  @declaration.int_signed?
end