1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-03 17:54:06 +00:00
OpenMW/components/esm/formidrefid.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
620 B
C++
Raw Normal View History

#include "formidrefid.hpp"
#include "serializerefid.hpp"
#include <ostream>
namespace ESM
{
std::string FormIdRefId::toString() const
{
std::string result;
result.resize(getIntegralSize(mValue) + 2, '\0');
serializeIntegral(mValue, 0, result);
return result;
}
std::string FormIdRefId::toDebugString() const
{
std::string result;
serializeRefIdValue(mValue, formIdRefIdPrefix, result);
return result;
}
std::ostream& operator<<(std::ostream& stream, FormIdRefId value)
{
return stream << value.toDebugString();
}
}