diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:09:24 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:09:24 +0200 |
commit | b5f042a6c132c1b97cf03c4615bab966c23f57d2 (patch) | |
tree | 1cb057a0ffd51264bb3c9807e2133505ce312eb1 /shared/serialize.h | |
parent | 3.11 (diff) | |
download | FreeFileSync-b5f042a6c132c1b97cf03c4615bab966c23f57d2.tar.gz FreeFileSync-b5f042a6c132c1b97cf03c4615bab966c23f57d2.tar.bz2 FreeFileSync-b5f042a6c132c1b97cf03c4615bab966c23f57d2.zip |
3.12
Diffstat (limited to 'shared/serialize.h')
-rw-r--r-- | shared/serialize.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/shared/serialize.h b/shared/serialize.h index 7c4fcd5e..5f1d5fbf 100644 --- a/shared/serialize.h +++ b/shared/serialize.h @@ -12,6 +12,7 @@ #include "file_error.h" #include <boost/scoped_array.hpp> #include <boost/shared_ptr.hpp> +#include <boost/cstdint.hpp> namespace util { @@ -126,7 +127,7 @@ void writeNumber(wxOutputStream& stream, T number) inline -Zstring readString(wxInputStream& stream) //read string from file stream +Zstring readString(wxInputStream& stream) { const size_t strLength = readNumber<size_t>(stream); if (strLength <= 1000) @@ -145,7 +146,7 @@ Zstring readString(wxInputStream& stream) //read string from file stream inline -void writeString(wxOutputStream& stream, const Zstring& str) //write string to filestream +void writeString(wxOutputStream& stream, const Zstring& str) { writeNumber<size_t>(stream, str.length()); stream.Write(str.c_str(), sizeof(Zchar) * str.length()); |