Gentee Programming Language > Documentation > Libraries Download documentation

hash.sethashsize

Set the size of the value table for searching for keys. The method must be called before any items are added. The parameter contains the power of two for calculating the size of the table since the number of items must be the power of two. By default, the size of a table is 4096 items.
 
uint hash.sethashsize(
      uint   power
)

Parameters

powerThe power of two for calculating the size of the table.

Return value

Nonzero if initialization was successful; otherwise 0.

See also

    Associative arrays - hash tables


 Copyright © 2004-2006 Gentee Inc. All rights reserved.