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

Side by Side Diff: runtime/bin/file.h

Issue 14018007: Rename RandomAccessFile.readList and RandomAccessFile.writeList to RandomAccessFile.readInto and Ra… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/bin/builtin_natives.cc ('k') | runtime/bin/file.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef BIN_FILE_H_ 5 #ifndef BIN_FILE_H_
6 #define BIN_FILE_H_ 6 #define BIN_FILE_H_
7 7
8 #include <stdlib.h> 8 #include <stdlib.h>
9 #include <string.h> 9 #include <string.h>
10 #include <stdio.h> 10 #include <stdio.h>
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 kPositionRequest = 7, 68 kPositionRequest = 7,
69 kSetPositionRequest = 8, 69 kSetPositionRequest = 8,
70 kTruncateRequest = 9, 70 kTruncateRequest = 9,
71 kLengthRequest = 10, 71 kLengthRequest = 10,
72 kLengthFromPathRequest = 11, 72 kLengthFromPathRequest = 11,
73 kLastModifiedRequest = 12, 73 kLastModifiedRequest = 12,
74 kFlushRequest = 13, 74 kFlushRequest = 13,
75 kReadByteRequest = 14, 75 kReadByteRequest = 14,
76 kWriteByteRequest = 15, 76 kWriteByteRequest = 15,
77 kReadRequest = 16, 77 kReadRequest = 16,
78 kReadListRequest = 17, 78 kReadIntoRequest = 17,
79 kWriteListRequest = 18, 79 kWriteFromRequest = 18,
80 kCreateLinkRequest = 19, 80 kCreateLinkRequest = 19,
81 kDeleteLinkRequest = 20 81 kDeleteLinkRequest = 20
82 }; 82 };
83 83
84 ~File(); 84 ~File();
85 85
86 // Read/Write attempt to transfer num_bytes to/from buffer. It returns 86 // Read/Write attempt to transfer num_bytes to/from buffer. It returns
87 // the number of bytes read/written. 87 // the number of bytes read/written.
88 int64_t Read(void* buffer, int64_t num_bytes); 88 int64_t Read(void* buffer, int64_t num_bytes);
89 int64_t Write(const void* buffer, int64_t num_bytes); 89 int64_t Write(const void* buffer, int64_t num_bytes);
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 158
159 // FileHandle is an OS specific class which stores data about the file. 159 // FileHandle is an OS specific class which stores data about the file.
160 FileHandle* handle_; // OS specific handle for the file. 160 FileHandle* handle_; // OS specific handle for the file.
161 161
162 static NativeService file_service_; 162 static NativeService file_service_;
163 163
164 DISALLOW_COPY_AND_ASSIGN(File); 164 DISALLOW_COPY_AND_ASSIGN(File);
165 }; 165 };
166 166
167 #endif // BIN_FILE_H_ 167 #endif // BIN_FILE_H_
OLDNEW
« no previous file with comments | « runtime/bin/builtin_natives.cc ('k') | runtime/bin/file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698