class FileSeekerInterface

Defined at line 24 of file ../../third_party/crashpad/src/util/file/file_seeker.h

An interface to seek in files and other file-like objects with

semantics matching the underlying platform (POSIX or Windows).

Public Methods

FileOffset Seek (FileOffset offset, int whence)

Wraps LoggingSeekFile() or provides an alternate implementation

with identical semantics.

Returns

The return value of LoggingSeekFile(). `-1` on failure,

with an error message logged.

FileOffset Seek (FileOffset offset, int whence)

Wraps LoggingSeekFile() or provides an alternate implementation

with identical semantics.

Returns

The return value of LoggingSeekFile(). `-1` on failure,

with an error message logged.

FileOffset SeekGet ()

Wraps Seek(), using `SEEK_CUR` to obtain the file’s current

position.

Returns

The file’s current position on success. `-1` on failure, with an

error message logged.

bool SeekSet (FileOffset offset)

Wraps Seek(), using `SEEK_SET`, ensuring that the seek succeeded

and the file is positioned as desired.

Returns

`true` if the operation succeeded, `false` if it failed, with an

error message logged. A failure to reposition the file as desired is

treated as a failure.

bool SeekSet (FileOffset offset)

Wraps Seek(), using `SEEK_SET`, ensuring that the seek succeeded

and the file is positioned as desired.

Returns

`true` if the operation succeeded, `false` if it failed, with an

error message logged. A failure to reposition the file as desired is

treated as a failure.

Protected Methods

void ~FileSeekerInterface ()

Defined at line 49 of file ../../third_party/crashpad/src/util/file/file_seeker.h