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

Issue 21363: Adds a new method ReadUntilComplete to FileStream which ensure that a... (Closed)

Created:
11 years, 10 months ago by James Hawkins
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Add a new method ReadUntilComplete to FileStream which ensures that all requested bytes are read from the file in one call, assuming no errors occurr or EOF is reached. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=9803

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 3

Patch Set 3 : '' #

Total comments: 2

Patch Set 4 : '' #

Total comments: 3

Patch Set 5 : '' #

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -0 lines) Patch
M net/base/file_stream.h View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M net/base/file_stream_posix.cc View 2 3 4 5 1 chunk +21 lines, -0 lines 0 comments Download
M net/base/file_stream_win.cc View 1 2 3 4 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
James Hawkins
11 years, 10 months ago (2009-02-13 21:36:53 UTC) #1
James Hawkins
sheesh, I forgot to port it to posix. Also a lint error.
11 years, 10 months ago (2009-02-13 21:48:40 UTC) #2
James Hawkins
11 years, 10 months ago (2009-02-13 21:54:58 UTC) #3
rvargas (doing something else)
http://codereview.chromium.org/21363/diff/8/9 File net/base/file_stream_win.cc (right): http://codereview.chromium.org/21363/diff/8/9#newcode242 Line 242: bytes_read = Read(buf, to_read, NULL); nit: declare bytes_read ...
11 years, 10 months ago (2009-02-13 22:20:50 UTC) #4
James Hawkins
11 years, 10 months ago (2009-02-13 22:37:49 UTC) #5
rvargas (doing something else)
Ignore the nits that are already fixed :( http://codereview.chromium.org/21363/diff/1010/1012 File net/base/file_stream.h (right): http://codereview.chromium.org/21363/diff/1010/1012#newcode87 Line 87: ...
11 years, 10 months ago (2009-02-13 22:45:52 UTC) #6
James Hawkins
11 years, 10 months ago (2009-02-13 23:05:51 UTC) #7
rvargas (doing something else)
11 years, 10 months ago (2009-02-13 23:08:26 UTC) #8
LGTM

Powered by Google App Engine
This is Rietveld 408576698