Module: Babeltrace2::BTFieldClass::Array::Dynamic::WithLengthField
- Defined in:
- lib/babeltrace2/trace-ir/field-class.rb
Instance Method Summary collapse
- #get_length_field_path ⇒ Object (also: #length_field_path)
- #to_h ⇒ Object
Instance Method Details
#get_length_field_path ⇒ Object Also known as: length_field_path
887 888 889 890 891 |
# File 'lib/babeltrace2/trace-ir/field-class.rb', line 887 def get_length_field_path handle = Babeltrace2.bt_field_class_array_dynamic_with_length_field_borrow_length_field_path_const(@handle) return nil if handle.null? BTFieldPath.new(handle, retain: true) end |
#to_h ⇒ Object
894 895 896 897 898 |
# File 'lib/babeltrace2/trace-ir/field-class.rb', line 894 def to_h res = super res[:length_field_path] = length_field_path.to_s res end |