diff options
Diffstat (limited to 'net')
-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: |