AutoFile::seek

Wrapper around fseek(). Will throw if seeking is not possible.

Synopsis

Declared in <streams.h>

void
seek(
    int64_t offset,
    int origin);

Parameters

NameDescription
offsetByte offset to seek to, interpreted relative to origin.
originReference point for the seek (e.g. SEEK_SET, SEEK_CUR, SEEK_END).