class ffi.Type

Available on all platforms

A native type.

Class Fields

static var DOUBLE:Type

64-bit float type.

static var FLOAT:Type

32-bit float type.

static var POINTER:Type

Pointer type.

static var SCHAR:Type

Signed char type.

static var SINT:Type

Signed native int type.

static var SINT16:Type

Signed 16-bit integer type.

static var SINT32:Type

Signed 32-bit integer type.

static var SINT64:Type

Signed 64-bit integer type.

static var SINT8:Type

Signed 8-bit integer type.

static var SSHORT:Type

Signed short type.

static var TYPE_DOUBLE:Int

64-bit floating-point type.

static var TYPE_FLOAT:Int

32-bit floating-point type.

static var TYPE_INT:Int

Native integer type.

static var TYPE_LONGDOUBLE:Int

128-bit floating-point type.

static var TYPE_POINTER:Int

Pointer type.

static var TYPE_SINT16:Int

Signed 16-bit integer type.

static var TYPE_SINT32:Int

Signed 32-bit integer type.

static var TYPE_SINT64:Int

Signed 64-bit integer type.

static var TYPE_SINT8:Int

Signed 8-bit integer type.

static var TYPE_STRUCT:Int

Struct type.

static var TYPE_UINT16:Int

Unsigned 16-bit integer type.

static var TYPE_UINT32:Int

Unsigned 32-bit integer type.

static var TYPE_UINT64:Int

Unsigned 64-bit integer type.

static var TYPE_UINT8:Int

Unsigned 8-bit integer type.

static var TYPE_VOID:Int

Void type.

static var UCHAR:Type

Unsigned char type.

static var UINT:Type

Unsigned native int type.

static var UINT16:Type

Unsigned 16-bit integer type.

static var UINT32:Type

Unsigned 32-bit integer type.

static var UINT64:Type

Unsigned 64-bit integer type.

static var UINT8:Type

Unsigned 8-bit integer type.

static var USHORT:Type

Unsigned short type.

static var VOID:Type

Void type..

static function createStruct(elements:Array<Type>):Type

Creates a struct with the specified elements

elements

The elements of the struct.

returns

The struct type created.

Instance Fields

var alignment:Int

The alignment of the type, in bytes.

var elements:Null<Array<Type>>

The elements belonging to this type if this is a struct, or null otherwise.

var size:Int

The size of the type, in bytes.

var type:Int

The type represented as an int.

function toString():String

Return a string representation of the type.