Array Functions

Function

Description

Array_Create

Create a new array with a specified number of empty items.

Array_CreateEx

Create a new array with a specified number of empty items of a specified size (in bytes) of each item.

Array_Destroy

Deallocates and frees all array items and the array itself.

Array_Extend

Extend (grow) an array and add new empty items.

Array_ItemAddress

Get the address of an array item specified by the item index.

Array_ItemLength

Get the stored length of an array item.

Array_ItemsAddValue

Add an integer value for every item of a QWORD array.

Array_ItemSetData

Write byte data of a specified length to an array item.

Array_ItemSetText

Write a zero terminated text string to an array item.

Array_ItemsMulValue

Multiply an integer value for every item of a QWORD array.

Array_ItemsSubValue

Subtract an integer value for every item of a QWORD array.

Array_LoadItemsFromFile

Create an array by loading a text file. Each line of the text file is set as a new item in the array.

Array_LoadItemsFromMem

Create an array by loading items array from memory. Each line of the text in memory is set as a new item in the array.

Array_Resize

Resize array (reallocate array memory) to a different item count.

Array_SaveItemsToFile

Saves all array items to a file.

Array_SaveItemsToMem

Write the array items, separated with a carriage return and line feed (CRLF), to a pre-allocated memory buffer.

Array_TotalItems

Get the total count of all array items in an array.

Array_TotalMemory

Get the total amount of memory to store the whole array and its items.

Array_Truncate

Truncate (shrink) an array and free any excess items.