Class: Babeltrace2::BTFieldClassEnumerationHandleCls
- Inherits:
-
BTFieldClassIntegerHandle
- Object
- FFI::Pointer
- BTHandle
- BTFieldClassHandle
- BTFieldClassIntegerHandle
- Babeltrace2::BTFieldClassEnumerationHandleCls
- Includes:
- BTFieldClassEnumerationHandle
- Defined in:
- lib/babeltrace2/types.rb
Class Method Summary collapse
Methods inherited from BTHandle
Class Method Details
.to_native(value, context) ⇒ Object
394 395 396 397 398 399 400 401 402 |
# File 'lib/babeltrace2/types.rb', line 394 def to_native(value, context) unless value.nil? p = value.to_ptr raise "invalid type #{p.class}, expected #{BTFieldClassEnumerationHandle}" unless p.kind_of?(BTFieldClassEnumerationHandle) p else nil end end |