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



481
482
483
# File 'lib/babeltrace/ctf/events.rb', line 481

def base
  @declaration.get_int_base
end

#byte_orderObject



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

def byte_order
  @declaration.get_int_byte_order
end

#def_classObject



473
474
475
# File 'lib/babeltrace/ctf/events.rb', line 473

def def_class
  IntegerDef
end

#encodingObject



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

def encoding
  @declaration.get_encoding
end

#lenObject



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

def len
  @declaration.get_int_len
end

#signed?Boolean

Returns:

  • (Boolean)


477
478
479
# File 'lib/babeltrace/ctf/events.rb', line 477

def signed?
  @declaration.int_signed?
end