You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
/* Getting count oracle and normalze it to fit available size*/
115
-
size_t count_max = (blob->Size() - ORACLE_SIZE) / (stamp.minSize() + ORACLE_SIZE);//First oracle - for number of items, and second one is oracle for each item size
116
+
size_t count_max = (blob->Size() - ORACLE_SIZE) / (stamp->minSize() + ORACLE_SIZE);//First oracle - for number of items, and second one is oracle for each item size
/* Calculating available vairable size, that will be destributed between parts according to size oracles*/
142
143
int data_size = blob->Size();
143
-
int fixed_data_size = stamp.minSize() * count_target;
144
+
int fixed_data_size = stamp->minSize() * count_target;
144
145
int var_data_size = data_size - fixed_data_size;
145
146
146
147
/* normalizing oracles so they fit total variable size, chop to parts and stamp parts*/
147
148
float remainder =0;/* we do not want waste bytes because of rounding, so we keep the remainder, and reuse it. Thus we will use all bytes (alomost, may loose last one due to remainder=0.99999)*/