* Reverts an accidental change to Utils.IntToBytes()

* Adds Utils.IntToBytesBig and Utils.DoubleToBytesBig()
* OSD.AsBinary() functions use big-endian functions where necessary

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2507 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2009-03-19 17:57:12 +00:00
parent fb6376d2b6
commit 46450da1ee
3 changed files with 28 additions and 17 deletions

View File

@@ -148,12 +148,7 @@ namespace OpenMetaverse.StructuredData
break;
case OSDType.Real:
stream.WriteByte(realBinaryMarker);
byte[] bytes = osd.AsBinary();
if(BitConverter.IsLittleEndian)
Array.Reverse(bytes);
stream.Write(bytes, 0, doubleLength);
stream.Write(osd.AsBinary(), 0, doubleLength);
break;
case OSDType.UUID:
stream.WriteByte(uuidBinaryMarker);