1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 20:19:56 +00:00
openmw-tes3mp/components/esm/esm_writer.cpp
2012-04-06 21:04:30 +02:00

28 lines
490 B
C++

#include "esm_writer.hpp"
namespace ESM
{
void ESMWriter::writeHNString(const std::string& name, const std::string& data)
{
writeName(name);
writeHString(data);
}
void ESMWriter::writeHString(const std::string& data)
{
writeT<int>(data.size()-1);
write(data.c_str(), data.size()-1);
}
void ESMWriter::writeName(const std::string& name)
{
write(name.c_str(), name.size()-1);
}
void ESMWriter::write(const char* data, int size)
{
m_stream.write(data, size);
}
}