We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
CS:GO implements it like this:
// write { int nLength = dat->m_wsValue ? V_wcslen( dat->m_wsValue ) : 0; buffer.PutShort( nLength ); for( int k = 0; k < nLength; ++ k ) { buffer.PutShort( ( unsigned short ) dat->m_wsValue[k] ); } break; } // read { int nLength = buffer.GetShort(); dat->m_wsValue = new wchar_t[nLength + 1]; for( int k = 0; k < nLength; ++ k ) { dat->m_wsValue[k] = buffer.GetShort(); } dat->m_wsValue[ nLength ] = 0; break; }
The text was updated successfully, but these errors were encountered:
So its just two bytes for length and then two bytes per char?
Seems simple enough, particularly given that char in .NET is already two bytes wide 😈
char
Sorry, something went wrong.
yaakov-h
No branches or pull requests
CS:GO implements it like this:
The text was updated successfully, but these errors were encountered: