diff options
author | ted.mielczarek <ted.mielczarek@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2007-12-04 20:41:02 +0000 |
---|---|---|
committer | ted.mielczarek <ted.mielczarek@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2007-12-04 20:41:02 +0000 |
commit | b3673d13a1b3499726bcbd922239f6fc71a0c919 (patch) | |
tree | 558565236f1a7658d8560d2d8c0b7688a609cb3a /src/google_breakpad/processor | |
parent | slight fixup from issue 225 (diff) | |
download | breakpad-b3673d13a1b3499726bcbd922239f6fc71a0c919.tar.xz |
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
Diffstat (limited to 'src/google_breakpad/processor')
-rw-r--r-- | src/google_breakpad/processor/minidump.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/google_breakpad/processor/minidump.h b/src/google_breakpad/processor/minidump.h index 4e900fb1..8c149337 100644 --- a/src/google_breakpad/processor/minidump.h +++ b/src/google_breakpad/processor/minidump.h @@ -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 |