(root)/
glib-2.79.0/
girepository/
cmph/
fch_buckets.h
       1  #ifndef __CMPH_FCH_BUCKETS_H__
       2  #define __CMPH_FCH_BUCKETS_H__
       3  
       4  #include "cmph_types.h"
       5  typedef struct __fch_buckets_t fch_buckets_t;
       6  
       7  fch_buckets_t * fch_buckets_new(cmph_uint32 nbuckets);
       8  
       9  cmph_uint8 fch_buckets_is_empty(fch_buckets_t * buckets, cmph_uint32 index);
      10  
      11  void fch_buckets_insert(fch_buckets_t * buckets, cmph_uint32 index, char * key, cmph_uint32 length);
      12  
      13  cmph_uint32 fch_buckets_get_size(fch_buckets_t * buckets, cmph_uint32 index);
      14  
      15  char * fch_buckets_get_key(fch_buckets_t * buckets, cmph_uint32 index, cmph_uint32 index_key);
      16  
      17  cmph_uint32 fch_buckets_get_keylength(fch_buckets_t * buckets, cmph_uint32 index, cmph_uint32 index_key);
      18  
      19  // returns the size of biggest bucket.
      20  cmph_uint32 fch_buckets_get_max_size(fch_buckets_t * buckets);
      21  
      22  // returns the number of buckets.
      23  cmph_uint32 fch_buckets_get_nbuckets(fch_buckets_t * buckets);
      24  
      25  cmph_uint32 * fch_buckets_get_indexes_sorted_by_size(fch_buckets_t * buckets);
      26  
      27  void fch_buckets_print(fch_buckets_t * buckets);
      28  
      29  void fch_buckets_destroy(fch_buckets_t * buckets);
      30  #endif