Class: Babeltrace2::BTSelfComponentHandleCls
- Inherits:
-
BTComponentHandle
- Object
- FFI::Pointer
- BTHandle
- BTComponentHandle
- Babeltrace2::BTSelfComponentHandleCls
- Includes:
- BTSelfComponentHandle
- Defined in:
- lib/babeltrace2/types.rb
Class Method Summary collapse
Methods inherited from BTHandle
Class Method Details
.to_native(value, context) ⇒ Object
177 178 179 180 181 182 183 184 185 |
# File 'lib/babeltrace2/types.rb', line 177 def to_native(value, context) unless value.nil? p = value.to_ptr raise "invalid type #{p.class}, expected #{BTSelfComponentHandle}" unless p.kind_of?(BTSelfComponentHandle) p else nil end end |