12 namespace BinarySerialization
15 size_t Write(
const T& value, std::ostream& writer)
17 writer.write(reinterpret_cast<const char*>(&value),
sizeof(T));
21 void WriteFourCC(
const std::string& s, std::ostream& writer);
22 size_t WriteShortString(
const std::string& s, std::ostream& writer);
23 void WriteTimeT_u32(time_t v, std::ostream& writer);
24 void WriteSizeT_u32(
size_t v, std::ostream& writer);