Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(582)

Unified Diff: runtime/bin/file.h

Issue 8578003: Implement setPosition on File to seek to a byte position. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/builtin_in.cc ('k') | runtime/bin/file.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/file.h
diff --git a/runtime/bin/file.h b/runtime/bin/file.h
index 11f509a1370c37297d6112c473fabd47daeba6cd..0a29cddeb9d71270dbeb20ac3368797965600a95 100644
--- a/runtime/bin/file.h
+++ b/runtime/bin/file.h
@@ -46,6 +46,7 @@ class File {
// Get the current position in the file.
// Returns a negative value if position cannot be determined.
off_t Position();
+ off_t SetPosition(int64_t position);
// Flush contents of file.
void Flush();
« no previous file with comments | « runtime/bin/builtin_in.cc ('k') | runtime/bin/file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698