NativeGc.hx 729 B

12345678910111213141516171819202122
  1. package cpp;
  2. extern class NativeGc
  3. {
  4. @:native("__hxcpp_gc_mem_info")
  5. static public function memInfo(inWhatInfo:Int) : Float return 0.0;
  6. @:native("_hx_allocate_extended") @:templatedCall
  7. static public function allocateExtended<T>(cls:Class<T>, size:Int) : T return null;
  8. @:native("_hx_add_finalizable")
  9. public static function addFinalizable( instance:{ function finalize():Void; }, inPin:Bool ): Void {}
  10. @:native("hx::InternalNew")
  11. public static function allocGcBytesRaw( inBytes : Int, isContainer:Bool ): RawPointer<cpp.Void> return null;
  12. inline public static function allocGcBytes( inBytes : Int ): Pointer<cpp.Void>
  13. {
  14. return Pointer.fromRaw( allocGcBytesRaw(inBytes, false) );
  15. }
  16. }