ammer

ammer.Lib

The ammer.Lib type provides a number of methods for client interaction with ammer libraries. These methods are (by necessity) macro methods. As a result, their signatures displayed below are only approximations.


ammer.Lib.allocStruct(type:Class<Struct>, ?initialValues:{ ... }):Struct

Allocates a struct of the given type, optionally assigning the given initial values to its fields. The type must be annotated with the @:ammer.alloc metadata.

Arguments


ammer.Lib.createHaxeRef(type:Class<T>, value:T):ammer.ffi.Haxe<T>

Creates a reference to the given Haxe value. See Haxe types.

Arguments


ammer.Lib.freeStruct(instance:Struct):Void

Deallocates the given pointer. The type must be annotated with the @:ammer.alloc metadata.

Arguments


ammer.Lib.nullPtrStruct(type:Class<Struct>):Struct

Returns a null pointer of the given type.

Arguments

« Previous: ammer.def.* types Next: List of configuration flags »