StringMap.SetArray Method

Sets an array value in a Map, either inserting a new entry or replacing an old one.

bool SetArray(const char[] key, const any[] array, int num_items, bool replace)

Parameters

const char[] key

Key string.

const any[] array

Array to store.

int num_items

Number of items in the array.

bool replace

If false, operation will fail if the key is already set.

Return Value

True on success, false on failure.