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

Unified Diff: runtime/bin/file.h

Issue 63363010: Add support for working with large files, in dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
Index: runtime/bin/file.h
diff --git a/runtime/bin/file.h b/runtime/bin/file.h
index 41efb4c999d78014e953154ada8519c2a151ef04..1f3eb11158f666da1fe269f30ea1beea9965b7d3 100644
--- a/runtime/bin/file.h
+++ b/runtime/bin/file.h
@@ -90,17 +90,17 @@ class File {
// Get the length of the file. Returns a negative value if the length cannot
// be determined (e.g. not seekable device).
- off_t Length();
+ off64_t Length();
// Get the current position in the file.
// Returns a negative value if position cannot be determined.
- off_t Position();
+ off64_t Position();
// Set the byte position in the file.
- bool SetPosition(int64_t position);
+ bool SetPosition(off64_t position);
// Truncate (or extend) the file to the given length in bytes.
- bool Truncate(int64_t length);
+ bool Truncate(off64_t length);
// Flush contents of file.
bool Flush();
@@ -126,7 +126,7 @@ class File {
static bool DeleteLink(const char* path);
static bool Rename(const char* old_path, const char* new_path);
static bool RenameLink(const char* old_path, const char* new_path);
- static off_t LengthFromPath(const char* path);
+ static off64_t LengthFromPath(const char* path);
static void Stat(const char* path, int64_t* data);
static time_t LastModified(const char* path);
static char* LinkTarget(const char* pathname);
« no previous file with comments | « runtime/bin/directory_macos.cc ('k') | runtime/bin/file.cc » ('j') | runtime/bin/file_android.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698