HashTableFactory.CreateDynamicHashtablePreAlloc (METH)ΒΆ
METHOD FINAL CreateDynamicHashtablePreAlloc : IMap2
Creates a dynamic hashtable with pre allocation (see input uiPreAllocation). The base array of the hashtable will be increased earlier to reduce the amount of collisions when the hashtable fills up. Note: Function blocks which are created with this factory are NOT online change safe.
- InOut:
Scope
Name
Type
Comment
Return
CreateDynamicHashtablePreAllocInput
udiInitialSizeUDINTInitial size of elements. Must not be 0.
uiGrowFactorUINTGrow factor for dynamic memory reallocation if the number of elements is greater than udiInitialSize. Use 1 to disable dynamic memory reallocation.
uiPreAllocationUINTThis value (in % related to the current maximum size) defines when the memory should be expanded.
Output
eErrorFBF.ERROR