* Reverting the CSJ2K Array.Copy -> Buffer.BlockCopy optimization for now since I didn't properly update the length parameter the first time around (LIBOMV-861)

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3415 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2010-08-06 03:11:08 +00:00
parent 65deb8f71e
commit 3fb3d19b52
25 changed files with 106 additions and 117 deletions

View File

@@ -113,7 +113,7 @@ namespace CSJ2K.j2k.entropy.encoder
// Resize buffer
byte[] tmpbuf = buf;
buf = new byte[buf.Length + BUF_INC];
Buffer.BlockCopy(tmpbuf, 0, buf, 0, count);
Array.Copy(tmpbuf, 0, buf, 0, count);
}
buf[count++] = (byte) b;
}
@@ -137,7 +137,7 @@ namespace CSJ2K.j2k.entropy.encoder
public virtual void toByteArray(int off, int len, byte[] outbuf, int outoff)
{
// Copy the data
Buffer.BlockCopy(buf, off, outbuf, outoff, len);
Array.Copy(buf, off, outbuf, outoff, len);
}
/// <summary> Returns the number of valid bytes in the output buffer (count class