-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Collapsed ints in binary kv1 implemented in CS:GO #35
Labels
Comments
case TYPE_COMPILED_INT_0:
{
// only for dense storage purposes, flip back to preferred internal format
dat->m_iDataType = TYPE_INT;
dat->m_iValue = 0;
break;
}
case TYPE_COMPILED_INT_1:
{
// only for dense storage purposes, flip back to preferred internal format
dat->m_iDataType = TYPE_INT;
dat->m_iValue = 1;
break;
}
case TYPE_COMPILED_INT_BYTE:
{
// only for dense storage purposes, flip back to preferred internal format
dat->m_iDataType = TYPE_INT;
dat->m_iValue = buffer.GetChar();
break;
} its just an int but using less space on disk (2 bytes) for a single byte value or (1 byte) boolean value. plus the key name of course. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks like they ported this back from Source 2. This is not great beacuse the enum has conflicting values.
The text was updated successfully, but these errors were encountered: