Cutting the last character of the string
Brought to you by:
karlseguin
In the file Serializer.cs, in the function WriteLongString, was with an error.
Was cutting the last character of the string.
I modified the function for:
private void WriteLongString(string value)
{
int length = value.Length+1;
byte[] buffer = Encoding.UTF8.GetBytes(value);
WriteUInt32((UInt32)buffer.Length);
Write(buffer, 0, buffer.Length);
}
Sorry my english.
Thanks for this great library.
To be necessary of help with her, only to write me: soujack@hotmail.com
P.S.: This was provoking other mistakes, as in XML.
Logged In: YES
user_id=1770066
Originator: YES
the line: int length = value.Length+1;
Don't exist! Because, actually it is not the last character, but, yes some that don't enter in the count of the size, but they enter in the array of bytes.