|
| void | settings_raw_iter_init (SettingsRawIter *iter, int fd, const char *file_name) |
| | Initialize an iterator and read the file header.
|
| |
| void | settings_raw_iter_write_file_header (SettingsRawIter *iter, SettingsFileHeader *file_hdr) |
| | Write the file header, for newly created files.
|
| |
| void | settings_raw_iter_begin (SettingsRawIter *iter) |
| | Move to the first record.
|
| |
| void | settings_raw_iter_resume (SettingsRawIter *iter) |
| | Start a search from the current record.
|
| |
| void | settings_raw_iter_next (SettingsRawIter *iter) |
| | Move to the next record.
|
| |
| bool | settings_raw_iter_end (SettingsRawIter *iter) |
| | Check whether the iterator is past the last record.
|
| |
| int | settings_raw_iter_get_current_record_pos (SettingsRawIter *iter) |
| | Get the current record position.
|
| |
| void | settings_raw_iter_set_current_record_pos (SettingsRawIter *iter, int pos) |
| | Move to a position from settings_raw_iter_get_current_record_pos().
|
| |
| int | settings_raw_iter_get_resumed_record_pos (SettingsRawIter *iter) |
| | Get the position the current search started from.
|
| |
| void | settings_raw_iter_read_key (SettingsRawIter *iter, uint8_t *key) |
| | Read the key of the current record.
|
| |
| void | settings_raw_iter_read_val (SettingsRawIter *iter, uint8_t *val, int val_len) |
| | Read the value of the current record.
|
| |
| void | settings_raw_iter_read_key_val (SettingsRawIter *iter, uint8_t *key_val_out) |
| | Read the key and value of the current record in one PFS call.
|
| |
| void | settings_raw_iter_write_header (SettingsRawIter *iter, SettingsRecordHeader *hdr) |
| | Write the header of the current record.
|
| |
| void | settings_raw_iter_write_key (SettingsRawIter *iter, const uint8_t *key) |
| | Write the key of the current record, using the length from its header.
|
| |
| void | settings_raw_iter_write_val (SettingsRawIter *iter, const uint8_t *val) |
| | Write the value of the current record, using the length from its header.
|
| |
| void | settings_raw_iter_write_key_val (SettingsRawIter *iter, const uint8_t *key_val) |
| | Write the key and value of the current record in one PFS call.
|
| |
| void | settings_raw_iter_write_byte (SettingsRawIter *iter, int offset, uint8_t byte) |
| | Write one byte of the value of the current record in place.
|
| |
| void | settings_raw_iter_deinit (SettingsRawIter *iter) |
| | Close the underlying file.
|
| |