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 - CreateDynamicHashtablePreAlloc- Input - udiInitialSize- UDINT- Initial size of elements. Must not be 0. - uiGrowFactor- UINT- Grow factor for dynamic memory reallocation if the number of elements is greater than udiInitialSize. Use 1 to disable dynamic memory reallocation. - uiPreAllocation- UINT- This value (in % related to the current maximum size) defines when the memory should be expanded. - Output - eError- FBF.ERROR
