dmi_reader_seek

Synopsis

#include <opendmi/reader.h>

bool dmi_reader_seek(dmi_reader_t *reader, size_t position);

Description

The dmi_reader_seek function repositions the reader cursor to position bytes from the beginning of the range.

The end of the range is accepted, since it is where the cursor stands once everything has been read, and a range may be read from there with nothing left in it.

Parameters

reader

Reader to reposition.

position

Byte offset from the beginning of the range.

Return value

true on success, false if position is past the end of the range.

Errors

None.