Tkrzw
Public Member Functions | List of all members
tkrzw::OffsetReader Class Referencefinal

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...
 

Detailed Description

Reader of a sequence of offsets.

Constructor & Destructor Documentation

◆ OffsetReader()

tkrzw::OffsetReader::OffsetReader ( File file,
int32_t  offset_width,
int32_t  align_pow,
bool  reversal 
)

Constructor.

Parameters
fileA file object containing offsets.
offset_widthThe offset width.
align_powThe alignment power.
reversalThe flag for reverse order.

Member Function Documentation

◆ ReadOffset()

Status tkrzw::OffsetReader::ReadOffset ( int64_t *  offset)

Read an offset.

Parameters
offsetThe pointer to an integer to store the result.
Returns
The result status.