Method: Babeltrace2::BTFieldClass::Variant::WithSelectorField::IntegerUnsigned#get_option_by_index
- Defined in:
- lib/babeltrace2/trace-ir/field-class.rb
#get_option_by_index(index) ⇒ Object
1588 1589 1590 1591 1592 1593 1594 1595 |
# File 'lib/babeltrace2/trace-ir/field-class.rb', line 1588 def get_option_by_index(index) count = get_option_count index += count if index < 0 return nil if index >= count || index < 0 BTFieldClassVariantWithSelectorFieldIntegerUnsignedOption.new( Babeltrace2.bt_field_class_variant_with_selector_field_integer_unsigned_borrow_option_by_index_const( @handle, index)) end |