Pointer.hx 385 B

1234567891011121314151617
  1. package cpp;
  2. extern class Pointer<T> implements ArrayAccess<T>
  3. {
  4. public static function fromArray<T>(array:Array<T>, inIdx:Int):Pointer<T>;
  5. public function inc():Void;
  6. public function dec():Void;
  7. public function add(inT:Int):Void;
  8. // ptr actually returns the pointer, so the ->member sysntax will work
  9. // Use [0] for a reference to the item
  10. public function ptr():T;
  11. }