This class implements an array of 64-bit integers. Common convenience functions are available, and the implementation is compatible with the internal Maya implementation so that it can be passed efficiently between plugins and internal maya data structures.
Assignment operator copies all of the elements of the other array into this one.
If the other array was returned as a reference to internal data (eg MFnInt64ArrayData::array), then this array will also become a reference rather than doing a full copy.
This will grow and shrink the array as desired. Elements that are grown have uninitialized values, while those which are shrunk will lose the data contained in the deleted elements (ie. it will release the memory).
Inserts a new value into the array at the given index.
The initial element at that index, and all following elements, are shifted towards the last. If the array cannot be expanded in size by 1 element, then the insert will fail and the existing array will remain unchanged.
Parameters
[in]
element
the new value to insert into the array
[in]
index
the index of the element to set to the the new value
Returns
MS::kSuccess if the insert was successful and MS::kFailure otherwise
After this operation the length method will return 0. This does not change the amount of memory allocated to the array, only the number of valid elements in it.
MS::kSuccess if the operation is successful and MS::kFailure otherwise