public void MemSet(int destinationAddress, byte value, int count)
{
System.Diagnostics.Debug.Assert(count > 0, String.Format("Bad count {0} passed in to MemSet", count));
System.Diagnostics.Debug.Assert(destinationAddress + count <= _bytes.GetUpperBound(0), String.Format("Bad count {0} passed in to MemSet. Would overrun memory.", count));
while (count-- > 0)
{
_bytes[destinationAddress++] = value;
}
}