* Added Utils.EmptyBytes which is equal to new byte[0] and replaced all references of new byte[0] to Utils.EmptyBytes

* Added a CRC32 implementation to OpenMetaverseTypes.dll
* Added ToBytes() functions to most of the OMV types for writing bytes into an existing byte array

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2470 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2009-03-06 01:32:02 +00:00
parent 2dc837eff1
commit 3ad7551a4a
24 changed files with 264 additions and 36 deletions

View File

@@ -86,7 +86,7 @@ namespace OpenMetaverse.StructuredData
public virtual UUID AsUUID() { return UUID.Zero; }
public virtual DateTime AsDate() { return Utils.Epoch; }
public virtual Uri AsUri() { return new Uri(String.Empty); }
public virtual byte[] AsBinary() { return new byte[0]; }
public virtual byte[] AsBinary() { return Utils.EmptyBytes; }
public virtual Vector2 AsVector2() { return Vector2.Zero; }
public virtual Vector3 AsVector3() { return Vector3.Zero; }
public virtual Vector3d AsVector3d() { return Vector3d.Zero; }
@@ -668,7 +668,7 @@ namespace OpenMetaverse.StructuredData
if (value != null)
this.value = value;
else
this.value = new byte[0];
this.value = Utils.EmptyBytes;
}
public OSDBinary(uint value)