Class: OpenCL::Pointer
- Inherits:
-
FFI::Pointer
- Object
- FFI::Pointer
- OpenCL::Pointer
- Defined in:
- lib/opencl_ruby_ffi/opencl_ruby_ffi_base.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(*args) ⇒ Pointer
constructor
A new instance of Pointer.
Constructor Details
#initialize(*args) ⇒ Pointer
Returns a new instance of Pointer.
6 7 8 9 10 11 12 |
# File 'lib/opencl_ruby_ffi/opencl_ruby_ffi_base.rb', line 6 def initialize(*args) if args.length == 2 then super(OpenCL::find_type(args[0]), args[1]) else super(*args) end end |