Bring binary serialized OSD in line with reference implementation

by Linden Lab's python LLSD parsers:
https://bitbucket.org/lindenlab/llbase/src/78beb7385d87/llbase/llsd.py
Patch by: Dahlia Trimble

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3592 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
Latif Khalifa
2011-12-02 04:44:34 +00:00
parent 5d79f55559
commit 9efec5cef7

View File

@@ -71,7 +71,7 @@ namespace OpenMetaverse.StructuredData
private const byte mapEndBinaryMarker = (byte)'}';
private const byte keyBinaryMarker = (byte)'k';
private static readonly byte[] llsdBinaryHeadBytes = Encoding.ASCII.GetBytes(llsdBinaryHead);
private static readonly byte[] llsdBinaryHeadBytes = Encoding.ASCII.GetBytes(llsdBinaryHead2);
/// <summary>
/// Deserializes binary LLSD
@@ -157,6 +157,7 @@ namespace OpenMetaverse.StructuredData
if (prependHeader)
{
stream.Write(llsdBinaryHeadBytes, 0, llsdBinaryHeadBytes.Length);
stream.WriteByte((byte)'\n');
}
SerializeLLSDBinaryElement(stream, data);
return stream;