size_t qHasharrSize ( int  max  ) 

Get how much memory is needed for N entries

Parameters:
max a number of maximum internal slots
Returns:
memory size needed
Note:
This is useful when you decide how much memory(shared-memory) required for N object entries. Be sure, a single object can be stored in several slots. So you need to consider additional slots if some data is bigger than _Q_HASHARR_DEF_VALUESIZE. By default, _Q_HASHARR_DEF_VALUESIZE is 32. This means if the size of object is bigger than 32 bytes it will use another slot.

Definition at line 132 of file qHasharr.c.


Generated on Mon Mar 26 07:00:52 2018 for JSOC_Documentation by  doxygen 1.5.7.1