Class: Babeltrace::CTF::SequenceTextDef

Inherits:
Definition
  • Object
show all
Defined in:
lib/babeltrace/ctf/events.rb

Instance Attribute Summary

Attributes inherited from Definition

#definition

Instance Method Summary collapse

Methods inherited from Definition

create, #decl, #initialize, #name

Constructor Details

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

Instance Method Details

#lenObject



418
419
420
# File 'lib/babeltrace/ctf/events.rb', line 418

def len
  CTF.bt_sequence_len(@definition)
end

#valueObject



422
423
424
425
# File 'lib/babeltrace/ctf/events.rb', line 422

def value
  return [] if len == 0
  @definition.get_char_sequence.read_bytes(len)
end