diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-09 18:08:39 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-09 18:08:39 +0000 |
commit | 09534699064c98867072fbfedaa810626b182e63 (patch) | |
tree | 4147cc53b26553537b53407678d31dd2fc458219 | |
parent | 2708ec117b211e48370909f0b2d6332fc8ae88e4 (diff) | |
download | chromium_src-09534699064c98867072fbfedaa810626b182e63.zip chromium_src-09534699064c98867072fbfedaa810626b182e63.tar.gz chromium_src-09534699064c98867072fbfedaa810626b182e63.tar.bz2 |
Add warning comment to FileStream::Truncate
Review URL: http://codereview.chromium.org/40299
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11258 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | net/base/file_stream.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/base/file_stream.h b/net/base/file_stream.h index 9447c07..470c3c6 100644 --- a/net/base/file_stream.h +++ b/net/base/file_stream.h @@ -112,6 +112,8 @@ class FileStream { // Truncates the file to be |bytes| length. This is only valid for writable // files. After truncation the file stream is positioned at |bytes|. The new // position is retured, or a value < 0 on error. + // WARNING: one may not truncate a file beyond its current length on any + // platform with this call. int64 Truncate(int64 bytes); private: |