diff options
author | vng <viktor.govako@gmail.com> | 2011-09-05 17:25:01 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:23:07 +0300 |
commit | a0cf3c14137bd3ed863b607015d882ae54ffdfcf (patch) | |
tree | 4583ce49a9bcb9556968fc51c5e591a14448cae2 /coding/file_writer.cpp | |
parent | 4f31145f6509610e6d6cf287b82951b65756919e (diff) |
Add truncate to FileWriter routine.
Diffstat (limited to 'coding/file_writer.cpp')
-rw-r--r-- | coding/file_writer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/coding/file_writer.cpp b/coding/file_writer.cpp index 03b0b5a959..5194eb9b5c 100644 --- a/coding/file_writer.cpp +++ b/coding/file_writer.cpp @@ -51,6 +51,11 @@ void FileWriter::Flush() m_pFileData->Flush(); } +void FileWriter::Truncate(uint64_t sz) +{ + m_pFileData->Truncate(sz); +} + void FileWriter::DeleteFileX(string const & fName) { my::DeleteFileX(fName); |