dmi_writer_rewind

Synopsis

#include <opendmi/writer.h>

bool dmi_writer_rewind(dmi_writer_t *writer, dmi_writer_mark_t mark);

Description

The dmi_writer_rewind function repositions the writer cursor to a mark taken with dmi_writer_mark, so that the bytes written from there on are written again.

Parameters

writer

Writer to reposition.

mark

Mark taken from the same writer with dmi_writer_mark.

Return value

true on success, false if the mark was taken of another writer, or over data which has been discarded since.

Errors

None.