W3cubDocs

/Haxe C++

NativeGc

package cpp

Available on cpp

Static methods

@:native("_hx_add_finalizable") static addFinalizable (instance:{finalize:Void ‑> Void}, inPin:Bool):Void

static inline allocGcBytes (inBytes:Int):Pointer<Void>

@:native("hx::InternalNew") static allocGcBytesRaw (inBytes:Int, isContainer:Bool):RawPointer<Void>

@:native("_hx_allocate_extended") @:templatedCall static allocateExtended<T> (cls:Class<T>, size:Int):T

@:native("__hxcpp_gc_compact") @:extern static compact ():Void

@:native("__hxcpp_gc_do_not_kill") @:extern static doNotKill (inObject:Dynamic):Void

@:native("__hxcpp_enable") @:extern static enable (inEnable:Bool):Void

@:native("__hxcpp_enter_gc_free_zone") @:extern static enterGCFreeZone ():Void

@:native("__hxcpp_exit_gc_free_zone") @:extern static exitGCFreeZone ():Void

@:native("__hxcpp_get_next_zombie") @:extern static getNextZombie ():Dynamic

@:native("__hxcpp_gc_mem_info") static memInfo (inWhatInfo:Int):Float

@:native("__hxcpp_gc_trace") @:extern static nativeTrace (sought:Class<Dynamic>, printInstances:Bool):Int

@:native("__hxcpp_collect") @:extern static run (major:Bool):Void

@:native("__hxcpp_gc_safe_point") @:extern static safePoint ():Void

@:native("__hxcpp_set_minimum_free_space") @:extern static setMinimumFreeSpace (inBytes:Int):Void

@:native("__hxcpp_set_minimum_working_memory") @:extern static setMinimumWorkingMemory (inBytes:Int):Void

@:native("__hxcpp_set_target_free_space_percentage") @:extern static setTargetFreeSpacePercentage (inPercentage:Int):Void

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/cpp/NativeGc.html