Tkrzw
|
Reader of a sequence of offsets. More...
#include <tkrzw_dbm_hash_impl.h>
Public Member Functions | |
OffsetReader (File *file, int32_t offset_width, int32_t align_pow, bool reversal) | |
Constructor. More... | |
Status | ReadOffset (int64_t *offset) |
Read an offset. More... | |
Reader of a sequence of offsets.
tkrzw::OffsetReader::OffsetReader | ( | File * | file, |
int32_t | offset_width, | ||
int32_t | align_pow, | ||
bool | reversal | ||
) |
Constructor.
file | A file object containing offsets. |
offset_width | The offset width. |
align_pow | The alignment power. |
reversal | The flag for reverse order. |
Status tkrzw::OffsetReader::ReadOffset | ( | int64_t * | offset | ) |
Read an offset.
offset | The pointer to an integer to store the result. |