Exemple #1
0
        public void Read(MemoryHandler Memory)
        {
            var bytes = new List <byte>();

            for (long i = 0; i < Length; i += readCount)
            {
                bytes.AddRange(Memory.ReadBytes(IntPtr.Add(StartAddress, (int)i), i + readCount >= Length ? (int)(Length - i) : readCount));
            }

            Data = bytes.ToArray();
        }
 public MemoryContainer(MemoryHandler m, IntPtr Address, int Length)
     : this(Address)
 {
     this.Data = m.ReadBytes(Address, Length);
 }