14 #ifndef SION_SION_KEYVALUE_H
15 #define SION_SION_KEYVALUE_H
26 size_t sion_fwrite_key(
const void *data, uint64_t key,
size_t size,
size_t nitems,
int sid);
27 size_t sion_fread_key(
void *data, uint64_t key,
size_t size,
size_t nitems,
int sid);
41 int sion_seek_key(
int sid, uint64_t key,
int entrynum, sion_int64 posinentry );
64 int _sion_keyval_check_env(
_sion_filedesc *sion_filedesc, sion_int64 file_mode_flags);
67 int _sion_store_and_write_key_and_len(
_sion_filedesc *sion_filedesc, uint64_t key,
size_t len);
68 int _sion_write_value(
_sion_filedesc *sion_filedesc,
const void *data, uint64_t key,
size_t len);
70 int _sion_find_and_read_key_and_len(
_sion_filedesc *sion_filedesc, uint64_t key,
size_t len,
size_t *datalen);
71 int _sion_read_value(
_sion_filedesc *sion_filedesc,
void *data, uint64_t key,
size_t len);
char * sion_keyval_type_to_str(int type)
Returns key value mode as string.
size_t sion_fwrite_key(const void *data, uint64_t key, size_t size, size_t nitems, int sid)
Writes data for key.
int sion_seek_key(int sid, uint64_t key, int entrynum, sion_int64 posinentry)
Seek to position in key.
int sion_get_keyval_mode(int sid)
Return selected mode for key value.
int sion_key_list_iterator_reset(int sid)
Resets key iterator.
int sion_key_full_scan(int sid)
Performs a full scan of all meta data in current file.
size_t sion_fread_key(void *data, uint64_t key, size_t size, size_t nitems, int sid)
Read data for key.
int sion_fread_key_iterator_reset(int sid)
Resets key iterator.
int sion_key_list_iterator_next(int sid, uint64_t *keyptr)
Forward to next key.
int sion_key_get_stat(int sid, uint64_t key, sion_key_stat_t *keystat)
get statistics about key
int sion_fread_key_iterator_next(int sid, uint64_t *key, size_t *size)
Forward to next key.
Sion File Descriptor Structure.