Pointer.hx 413 B

12345678910111213141516171819
  1. package cpp;
  2. extern class Pointer<T> implements ArrayAccess<T>
  3. {
  4. // ptr actually returns the pointer - not strictly a 'T'
  5. // Use value or [0] for a reference to the item
  6. public var ptr:T;
  7. public var value(get,set):T;
  8. public static function addressOf<T>(value:T):Pointer<T>;
  9. public function inc():Void;
  10. public function dec():Void;
  11. public function add(inT:Int):Void;
  12. public function deref():T;
  13. }