lib/vigilem/win32_api/types.rb
# Converts the specified value to the native type.
# @return [::FFI::Pointer]
Converts the specified value to the native type.
Converts the specified value to the native type .
def to_native(value, ctx)
          case 
          when value.is_a?(::FFI::Pointer)
            value
          when value.is_a?(self)
            value.ptr
          else
            raise "#{value} is an Unsupported Type"
          end
        end
def to_native ( value , ctx ) case when value . is_a? ( :: FFI :: Pointer ) value when value . is_a? ( self ) value . ptr else raise "#{value} is an Unsupported Type" end end
Converts the specified value to the native type.
Converts the specified value to the native type .
None
::FFI::Pointer
value
ctx