[libopenmetaverse] r3592 committed - Bring binary serialized OSD in line with reference implementation...

0 views
Skip to first unread message

libopenm...@googlecode.com

unread,
Dec 1, 2011, 11:44:43 PM12/1/11
to libomv-...@googlegroups.com
Revision: 3592
Author: latifer
Date: Thu Dec 1 20:44:34 2011
Log: 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
http://code.google.com/p/libopenmetaverse/source/detail?r=3592

Modified:
/libopenmetaverse/trunk/OpenMetaverse.StructuredData/LLSD/BinaryLLSD.cs

=======================================
--- /libopenmetaverse/trunk/OpenMetaverse.StructuredData/LLSD/BinaryLLSD.cs
Fri Jun 10 06:37:53 2011
+++ /libopenmetaverse/trunk/OpenMetaverse.StructuredData/LLSD/BinaryLLSD.cs
Thu Dec 1 20:44:34 2011
@@ -71,7 +71,7 @@
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 @@
if (prependHeader)
{
stream.Write(llsdBinaryHeadBytes, 0,
llsdBinaryHeadBytes.Length);
+ stream.WriteByte((byte)'\n');
}
SerializeLLSDBinaryElement(stream, data);
return stream;

Reply all
Reply to author
Forward
0 new messages