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

Issue 8578003: Implement setPosition on File to seek to a byte position. (Closed)

Created:
9 years, 1 month ago by Mads Ager (google)
Modified:
9 years, 1 month ago
Reviewers:
Søren Gjesse
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Implement setPosition on File to seek to a byte position. R=sgjesse@google.com BUG=dart:263 TEST=standalone/FileTest Committed: https://code.google.com/p/dart/source/detail?r=1573

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -3 lines) Patch
M runtime/bin/builtin_in.cc View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/bin/file.h View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/bin/file.cc View 1 chunk +16 lines, -0 lines 0 comments Download
M runtime/bin/file.dart View 2 chunks +14 lines, -2 lines 0 comments Download
M runtime/bin/file_impl.dart View 1 5 chunks +45 lines, -0 lines 0 comments Download
M runtime/bin/file_linux.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M runtime/bin/file_macos.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M runtime/bin/file_win.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M tests/standalone/src/FileTest.dart View 2 chunks +10 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
Mads Ager (google)
9 years, 1 month ago (2011-11-16 15:13:33 UTC) #1
Søren Gjesse
lgtm http://codereview.chromium.org/8578003/diff/1/runtime/bin/file_impl.dart File runtime/bin/file_impl.dart (right): http://codereview.chromium.org/8578003/diff/1/runtime/bin/file_impl.dart#newcode777 runtime/bin/file_impl.dart:777: var handler = (_setPositionHandler != null) ? _setPositionHandler ...
9 years, 1 month ago (2011-11-16 15:24:11 UTC) #2
Mads Ager (google)
9 years, 1 month ago (2011-11-16 15:49:17 UTC) #3
http://codereview.chromium.org/8578003/diff/1/runtime/bin/file_impl.dart
File runtime/bin/file_impl.dart (right):

http://codereview.chromium.org/8578003/diff/1/runtime/bin/file_impl.dart#newc...
runtime/bin/file_impl.dart:777: var handler = (_setPositionHandler != null) ?
_setPositionHandler : () => null;
On 2011/11/16 15:24:11, Søren Gjesse wrote:
> Long line.

Done.

Powered by Google App Engine
This is Rietveld 408576698