Microsoft SDK for Java

ArrayAlloc

Creates an array of primitive types.

Syntax

HObject* __cdecl ArrayAlloc(int type, int cItems);

Return Value

Returns an allocated array.

Parameters

type Primitive data type as defined in Native.h. The following types are supported:

T_BOOLEAN is a Boolean.

T_BYTE is a Byte.

T_CHAR is a Character.

T_DOUBLE is a Double.

T_FLOAT is a Float.

T_INT is an Integer.

T_LONG is a Long.

T_SHORT is a Short.

cItems The number of items in the array.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.