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.kind_of?(::FFI::Pointer)
            value
          when value.kind_of?(::FFI::Struct)
            value.to_ptr
          else
            ::FFI::Pointer.new(value.to_i)
          end
        end
def to_native ( value , ctx ) case when value . kind_of? ( :: FFI :: Pointer ) value when value . kind_of? ( :: FFI :: Struct ) value . to_ptr else :: FFI :: Pointer . new ( value . to_i ) end end
Converts the specified value to the native type.
Converts the specified value to the native type .
None
::FFI::Pointer
value
ctx