Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvng <viktor.govako@gmail.com>2011-09-05 17:25:01 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:23:07 +0300
commita0cf3c14137bd3ed863b607015d882ae54ffdfcf (patch)
tree4583ce49a9bcb9556968fc51c5e591a14448cae2 /coding/file_writer.cpp
parent4f31145f6509610e6d6cf287b82951b65756919e (diff)
Add truncate to FileWriter routine.
Diffstat (limited to 'coding/file_writer.cpp')
-rw-r--r--coding/file_writer.cpp5
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);