package cpp; extern class Pointer implements ArrayAccess { public static function fromArray(array:Array, inIdx:Int):Pointer; public function inc():Void; public function dec():Void; public function add(inT:Int):Void; // ptr actually returns the pointer, so the ->member sysntax will work // Use [0] for a reference to the item public function ptr():T; }