Stdlib

cpp.Stdlib (extern class)

Static Members

nativeMalloc(bytes: Int): RawPointer<Void>
Name Type
bytes Int
Returns
RawPointer<Void>

nativeCalloc(bytes: Int): RawPointer<Void>
Name Type
bytes Int
Returns
RawPointer<Void>

nativeRealloc(inPtr: RawPointer<Void>, bytes: Int): RawPointer<Void>
Name Type
inPtr RawPointer<Void>
bytes Int
Returns
RawPointer<Void>

nativeFree(ptr: RawPointer<Void>): Void
Name Type
ptr RawPointer<Void>

nativeMemcpy(dest: RawPointer<Void>, src: RawConstPointer<Void>, bytes: Int): Void
Name Type
dest RawPointer<Void>
src RawConstPointer<Void>
bytes Int

sizeof(t: sizeof.T): Int
Name Type
t sizeof.T
Returns
Int

memcpy(dest: Pointer<memcpy.DEST>, src: ConstPointer<memcpy.SRC>, bytes: Int): Void
Name Type
dest Pointer<memcpy.DEST>
src ConstPointer<memcpy.SRC>
bytes Int

malloc(bytes: Int): Pointer<malloc.T>
Name Type
bytes Int
Returns
Pointer<malloc.T>

calloc(bytes: Int): Pointer<calloc.T>
Name Type
bytes Int
Returns
Pointer<calloc.T>

realloc(ioPtr: Pointer<realloc.T>, bytes: Int): Void
Name Type
ioPtr Pointer<realloc.T>
bytes Int

free(ptr: Pointer<free.T>): Void
Name Type
ptr Pointer<free.T>

Metadata

Name Parameters
:include "stdlib.h"