Pointer.hx 802 B

12345678910111213141516171819202122232425262728
  1. package cpp;
  2. @:coreType
  3. extern class Pointer<T> extends ConstPointer<T> implements ArrayAccess<T>
  4. {
  5. public var ref(get,set):T;
  6. public static function fromHandle<T>(inHandle:Dynamic,?inKind:String) : Pointer<T>;
  7. public static function fromPointer<T>(inNativePointer:Dynamic) : Pointer<T>;
  8. public static function addressOf<T>(inVariable:T) : Pointer<T>;
  9. public static function arrayElem<T>(array:Array<T>, inElem:Int):Pointer<T>;
  10. override public function get_raw() : RawPointer<T>;
  11. override public function inc():Pointer<T>;
  12. override public function dec():Pointer<T>;
  13. override public function incBy(inT:Int):Pointer<T>;
  14. override public function add(inT:Int):Pointer<T>;
  15. public function postIncRef():T;
  16. public function destroy():Void;
  17. public function destroyArray():Void;
  18. }