Microsoft SDK for Java

ClassArrayAlloc2

Creates an array of objects given the class address.

Syntax

HObject* __cdecl ClassArrayAlloc2(int type, int cItems, ClassClass *cb);

Return Value

Returns an allocated object array.

Parameters

type Set this parameter to T_CLASS. Otherwise, the function will behave like ArrayAlloc and return an array of primitives. The exact type depends on whether this parameter is set to T_BOOLEAN, T_BYTE, T_CHAR, T_DOUBLE, T_FLOAT, T_INT, T_LONG, or T_SHORT.
cItems The number of elements in the array to allocate.
*cb The address of the class object. If the address is not known, use the function ClassArrayAlloc instead. If the type is T_CLASS, cb must be valid.

Remarks

This function was added as of versions 2925 through 3167 of the Microsoft virtual machine.

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