Пример #1
0
bool Serializer::WriteColor(const Color& value)
{
    return Write(value.Data(), sizeof value) == sizeof value;
}
Пример #2
0
Color Deserializer::ReadColor()
{
    Color ret;
    Read((void*)ret.Data(), sizeof ret);
    return ret;
}