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.hpp | |
parent | 4f31145f6509610e6d6cf287b82951b65756919e (diff) |
Add truncate to FileWriter routine.
Diffstat (limited to 'coding/file_writer.hpp')
-rw-r--r-- | coding/file_writer.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/coding/file_writer.hpp b/coding/file_writer.hpp index 0c1b9302b8..b5ef6a1c18 100644 --- a/coding/file_writer.hpp +++ b/coding/file_writer.hpp @@ -33,8 +33,10 @@ public: void Seek(int64_t pos); int64_t Pos() const; void Write(void const * p, size_t size); + uint64_t Size() const; void Flush(); + void Truncate(uint64_t sz); static void DeleteFileX(string const & fName); |