Source - Database db5, index. More...
#include <limits.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include "check.h"
#include "db5_dat.h"
#include "db5_hdr.h"
#include "db5_index.h"
#include "db5_types.h"
#include "file.h"
#include "crc32.h"
#include "logger.h"
Go to the source code of this file.
Classes | |
struct | index_entry |
index entry More... | |
Defines | |
#define | byteof(c, i) (((char *)&c)[(i)]) |
get n-th byte of an object | |
Functions | |
bool | db5_index_index_column (const ptrdiff_t reloffset, const size_t size, const uint32_t code) |
index a column (system) |
Source - Database db5, index.
Definition in file db5_index.c.
bool db5_index_index_column | ( | const ptrdiff_t | reloffset, | |
const size_t | size, | |||
const uint32_t | code | |||
) |
index a column (system)
reloffset | element address in structure line | |
size | size of element | |
code | index code to generate |
Definition at line 84 of file db5_index.c.
References add_log(), ADDLOG_DEBUG, ADDLOG_FAIL, ADDLOG_NOTICE, byteof, check, CONFIG_DB5_DATA_DIR, CONFIG_DB5_IDX_FILE, crc32(), db5_dat_select_row(), db5_hdr_count(), file_fcaseopen(), index_entry::hidden, membersizeof, index_entry::position, and index_entry::uid.