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

Unified Diff: runtime/bin/file.h

Issue 10065013: Support length operation without opening file. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 months 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
Index: runtime/bin/file.h
diff --git a/runtime/bin/file.h b/runtime/bin/file.h
index d0eb44fe59f2b673e650ba7d4a4dda3658e599a0..702331b78705ab012a83e4a260190fed3f8a279d 100644
--- a/runtime/bin/file.h
+++ b/runtime/bin/file.h
@@ -62,12 +62,13 @@ class File {
kSetPositionRequest = 8,
kTruncateRequest = 9,
kLengthRequest = 10,
- kFlushRequest = 11,
- kReadByteRequest = 12,
- kWriteByteRequest = 13,
- kReadListRequest = 14,
- kWriteListRequest = 15,
- kWriteStringRequest = 16
+ kLengthFromNameRequest = 11,
+ kFlushRequest = 12,
+ kReadByteRequest = 13,
+ kWriteByteRequest = 14,
+ kReadListRequest = 15,
+ kWriteListRequest = 16,
+ kWriteStringRequest = 17
};
~File();
@@ -123,6 +124,7 @@ class File {
static bool Exists(const char* name);
static bool Create(const char* name);
static bool Delete(const char* name);
+ static off_t LengthFromName(const char* name);
static bool IsAbsolutePath(const char* pathname);
static char* GetCanonicalPath(const char* name);
static char* GetContainingDirectory(char* name);
« no previous file with comments | « runtime/bin/builtin_natives.cc ('k') | runtime/bin/file.cc » ('j') | runtime/bin/file_impl.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698