Method: Babeltrace2::BTSelfComponent::Source#get_output_port_by_index
- Defined in:
- lib/babeltrace2/graph/self-component.rb
#get_output_port_by_index(index) ⇒ Object
104 105 106 107 108 109 110 |
# File 'lib/babeltrace2/graph/self-component.rb', line 104 def get_output_port_by_index(index) count = get_output_port_count index += count if index < 0 return nil if index >= count || index < 0 handle = Babeltrace2.bt_self_component_source_borrow_output_port_by_index(@handle, index) BTSelfComponentPortOutput.new(handle, retain: false, auto_release: false) end |