DtsodV24_serialize updated to safethrow

This commit is contained in:
2022-04-17 18:01:41 +03:00
parent 8d3991f8fb
commit 0464bd54df
7 changed files with 73 additions and 62 deletions

View File

@@ -1,9 +1,9 @@
#include "Hashtable.h"
// amount of rows
static const uint16 HT_HEIGHTS[]={17,61,257,1021,4099,16381,65521};
#define HT_HEIN_MIN 0
#define HT_HEIN_MAX 5
static const uint16 HT_HEIGHTS[]={61,257,1021,4099,16381,65521};
#define HT_HEIN_MAX 6
#define ARR_BC 2
#define ARR_BL 8
@@ -25,7 +25,7 @@ void Hashtable_free(Hashtable* ht){
free(ht);
}
uint32 Hashtable_height(Hashtable* ht) { return HT_HEIGHTS[ht->hein]; }
uint16 Hashtable_height(Hashtable* ht) { return HT_HEIGHTS[ht->hein]; }
void Hashtable_expand(Hashtable* ht){

View File

@@ -17,7 +17,7 @@ Hashtable* Hashtable_create();
void Hashtable_free(Hashtable* ht);
// amount of rows
uint32 Hashtable_height(Hashtable* ht);
uint16 Hashtable_height(Hashtable* ht);
// adds charptr and value to new KeyValuePair
// use cptr_copy() to create new string if needed