class CXCursor
FFI struct representing a cursor in the libclang AST.
Signature
- private
Definitions
def dup
Create a deep copy of this cursor in Ruby-managed memory.
Signature
-
returns
CXCursor A new CXCursor with its own backing memory.
Implementation
def dup
copy = self.class.new
copy.to_ptr.put_bytes(0, self.to_ptr.read_bytes(self.class.size))
copy
end