C64Lib.Memory.Base.RamBase.MemCopy C# (CSharp) Метод

MemCopy() публичный Метод

public MemCopy ( int destinationAddress, int sourceAddress, int count ) : void
destinationAddress int
sourceAddress int
count int
Результат void
        public void MemCopy(int destinationAddress, int sourceAddress, int count)
        {
            System.Diagnostics.Debug.Assert(count > 0, String.Format("Bad count {0} passed in to MemCopy", count));
            System.Diagnostics.Debug.Assert(destinationAddress + count <= _bytes.GetUpperBound(0), String.Format("Bad count {0} passed in to MemCopy. Would overrun memory.", count));

            while (count-- > 0)
            {
                _bytes[destinationAddress++] = _bytes[sourceAddress++];
            }
        }