public override int Read(byte[] buffer, int offset, int count) { byte[] tempBuffer = DebuggedProcess.ReadMemory(CurrentAddress + Convert.ToUInt64(offset), Convert.ToUInt32(count)); int read = Math.Min(tempBuffer.Length, buffer.Length); for (int index = 0; index < read; index++) { buffer[index] = tempBuffer[index]; } CurrentAddress += Convert.ToUInt64(read); return(read); }