Page History
...
Code Block |
---|
Handle = SRP_HashTable_Create(CaseSensitiveFlag, ApproximateCount) |
Returns
A handle to a new SRP List.
Parameters
Parameter | Description |
---|---|
CaseSensitiveFlag | Determines whether or not the hash table keys are case sensitive. (OPTIONAL, 0 by default) |
ApproximateCount | The estimated number of elements the hash table will contain (OPTIONAL) |
Remarks
The SRP_HashTable_Create method creates a new SRP Hash Table. An SRP Hash Table is an in-memory hash table that stores key-value pairs. Just like OpenInsight tables store records identified by unique keys, SRP Hash Tables store variables identified by unique keys.
...
IMPORTANT: You should always release the handle to an SRP Hash Table when you no longer need it by calling SRP_HashTable_Release.
Examples
Code Block |
---|
// Create a case-insensitive hash table Handle = SRP_HashTable_Create() // Create a case-sensitive hash table Handle = SRP_HashTable_Create(1) // Create a case-sensitive hash table that will contain roughly 250,000 elements Handle = SRP_HashTable_Create(1, 250000) |