Class: OpenCL::MemoryPointer

Inherits:
FFI::MemoryPointer
  • Object
show all
Defined in:
lib/opencl_ruby_ffi/opencl_ruby_ffi_base.rb

Instance Method Summary collapse

Constructor Details

#initialize(size, count = 1, clear = true) ⇒ MemoryPointer

Returns a new instance of MemoryPointer.



23
24
25
26
27
28
# File 'lib/opencl_ruby_ffi/opencl_ruby_ffi_base.rb', line 23

def initialize(size, count = 1, clear = true)
  if size.is_a?(Symbol)
    size = OpenCL::find_type(size)
  end
  super(size, count, clear)
end