mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-12-31 23:26:50 +00:00
Issue 224 - add Tell method to Minidump class. r=mento
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@235 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
e8eafaaa2e
commit
b3673d13a1
|
@ -804,6 +804,9 @@ class Minidump {
|
|||
// Sets the position of the minidump file to offset.
|
||||
bool SeekSet(off_t offset);
|
||||
|
||||
// Returns the current position of the minidump file.
|
||||
off_t Tell() { return valid_ ? lseek(fd_, 0, SEEK_CUR) : (off_t)-1; }
|
||||
|
||||
// The next 2 methods are medium-level I/O routines.
|
||||
|
||||
// ReadString returns a string which is owned by the caller! offset
|
||||
|
|
Loading…
Reference in a new issue