public unsafe void Fill(UInt32 aStart, UInt32 aCount, byte aData)
        {
            // TODO thow exception if aStart and aCount are not in bound. I've tried to do this but Bochs dies :-(
            byte *xDest = (byte *)(this.Base + aStart);

            MemoryOperations.Fill(xDest, aData, (int)aCount);
        }
 /// <summary>
 /// Fill memory block.
 /// </summary>
 /// <param name="aData">A data to fill.</param>
 public void Fill(uint aData)
 {
     fixed(byte *destPtr = this.memory)
     {
         MemoryOperations.Fill(destPtr, (int)aData, (int)this.Size);
     }
 }
Exemple #3
0
        public unsafe void Fill(uint aByteOffset, uint aCount, uint aData)
        {
            // TODO thow exception if aStart and aCount are not in bound. I've tried to do this but Bochs dies :-(
            uint *xDest = (uint *)(Base + aByteOffset);

            MemoryOperations.Fill(xDest, aData, (int)aCount);
        }
 /// <summary>
 /// Fill data to memory block.
 /// </summary>
 /// <param name="aStart">A starting position in the memory block.</param>
 /// <param name="aCount">Data size.</param>
 /// <param name="aData">A data to fill memory block with.</param>
 public unsafe void Fill(int aStart, int aCount, int aData)
 {
     // TODO thow exception if aStart and aCount are not in bound. I've tried to do this but Bochs dies :-(
     fixed(byte *aArrayPtr = this.memory)
     {
         MemoryOperations.Fill(aArrayPtr + aStart, aData, (int)aCount);
     }
 }