W3cubDocs

/Haxe C++

Stdlib

package cpp

@:include("stdlib.h") Available on cpp

Static methods

static inline calloc<T> (bytes:Int):Pointer<T>

static inline free<T> (ptr:Pointer<T>):Void

static inline malloc<T> (bytes:Int):Pointer<T>

static inline memcpy<DEST, SRC> (dest:Pointer<DEST>, src:ConstPointer<SRC>, bytes:Int):Void

@:native("calloc") static nativeCalloc (bytes:Int):RawPointer<Void>

@:native("free") static nativeFree (ptr:RawPointer<Void>):Void

@:native("malloc") static nativeMalloc (bytes:Int):RawPointer<Void>

@:native("memcpy") static nativeMemcpy (dest:RawPointer<Void>, src:RawConstPointer<Void>, bytes:Int):Void

@:native("realloc") static nativeRealloc (inPtr:RawPointer<Void>, bytes:Int):RawPointer<Void>

static inline realloc<T> (ioPtr:Pointer<T>, bytes:Int):Void

@:native("hx::ClassSizeOf") @:templatedCall static sizeof<T> (t:T ):Int

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