306
306
int4store(ptr + AZ_COMMENT_LENGTH_POS, s->comment_length); /* COMMENT Block */
307
307
int4store(ptr + AZ_META_POS, 0); /* Meta Block */
308
308
int4store(ptr + AZ_META_LENGTH_POS, 0); /* Meta Block */
309
int8store(ptr + AZ_START_POS, (unsigned long long)s->start); /* Start of Data Block Index Block */
310
int8store(ptr + AZ_ROW_POS, (unsigned long long)s->rows); /* Start of Data Block Index Block */
311
int8store(ptr + AZ_FLUSH_POS, (unsigned long long)s->forced_flushes); /* Start of Data Block Index Block */
312
int8store(ptr + AZ_CHECK_POS, (unsigned long long)s->check_point); /* Start of Data Block Index Block */
313
int8store(ptr + AZ_AUTOINCREMENT_POS, (unsigned long long)s->auto_increment); /* Start of Data Block Index Block */
309
int8store(ptr + AZ_START_POS, (uint64_t)s->start); /* Start of Data Block Index Block */
310
int8store(ptr + AZ_ROW_POS, (uint64_t)s->rows); /* Start of Data Block Index Block */
311
int8store(ptr + AZ_FLUSH_POS, (uint64_t)s->forced_flushes); /* Start of Data Block Index Block */
312
int8store(ptr + AZ_CHECK_POS, (uint64_t)s->check_point); /* Start of Data Block Index Block */
313
int8store(ptr + AZ_AUTOINCREMENT_POS, (uint64_t)s->auto_increment); /* Start of Data Block Index Block */
314
314
int4store(ptr+ AZ_LONGEST_POS , s->longest_row); /* Longest row */
315
315
int4store(ptr+ AZ_SHORTEST_POS, s->shortest_row); /* Shorest row */
316
316
int4store(ptr+ AZ_FRM_POS,
402
402
s->minor_version= (unsigned int)buffer[AZ_MINOR_VERSION_POS];
403
403
s->block_size= 1024 * buffer[AZ_BLOCK_POS];
404
404
s->start= (size_t)uint8korr(buffer + AZ_START_POS);
405
s->rows= (unsigned long long)uint8korr(buffer + AZ_ROW_POS);
406
s->check_point= (unsigned long long)uint8korr(buffer + AZ_CHECK_POS);
407
s->forced_flushes= (unsigned long long)uint8korr(buffer + AZ_FLUSH_POS);
408
s->auto_increment= (unsigned long long)uint8korr(buffer + AZ_AUTOINCREMENT_POS);
405
s->rows= (uint64_t)uint8korr(buffer + AZ_ROW_POS);
406
s->check_point= (uint64_t)uint8korr(buffer + AZ_CHECK_POS);
407
s->forced_flushes= (uint64_t)uint8korr(buffer + AZ_FLUSH_POS);
408
s->auto_increment= (uint64_t)uint8korr(buffer + AZ_AUTOINCREMENT_POS);
409
409
s->longest_row= (unsigned int)uint4korr(buffer + AZ_LONGEST_POS);
410
410
s->shortest_row= (unsigned int)uint4korr(buffer + AZ_SHORTEST_POS);
411
411
s->frm_start_pos= (unsigned int)uint4korr(buffer + AZ_FRM_POS);