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

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

public MemSet ( int destinationAddress, byte value, int count ) : void
destinationAddress int
value byte
count int
Результат void
        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;
            }
        }