F4MP/codigos originales/tiltedcode/Code/encoding/Messages/NotifySetTimeResult.cpp

16 lines
449 B
C++
Raw Normal View History

#include <Messages/NotifySetTimeResult.h>
void NotifySetTimeResult::SerializeRaw(TiltedPhoques::Buffer::Writer& aWriter) const noexcept
{
aWriter.WriteBits(static_cast<uint64_t>(Result), 8);
}
void NotifySetTimeResult::DeserializeRaw(TiltedPhoques::Buffer::Reader& aReader) noexcept
{
ServerMessage::DeserializeRaw(aReader);
uint64_t dest = 0;
aReader.ReadBits(dest, 8);
Result = static_cast<SetTimeResult>(dest & 0xFF);
}