Class: Geokdtree::KdtreePointer

Inherits:
FFI::AutoPointer
  • Object
show all
Defined in:
lib/geokdtree/tree.rb

Class Method Summary collapse

Class Method Details

.release(ptr) ⇒ Object



14
15
16
17
# File 'lib/geokdtree/tree.rb', line 14

def self.release(ptr) 
  # ptr is the original pointer you passed in to create VectorPointer 
  C::kd_free(ptr) 
end