mirror of
https://github.com/par274/sharpemu.git
synced 2026-08-07 18:31:17 +08:00
90c72ebecf
* Optimize guest import, memory, and pthread hot paths * Fix UE adaptive mutex self-lock handling
16 lines
455 B
C#
16 lines
455 B
C#
// Copyright (C) 2026 SharpEmu Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
namespace SharpEmu.HLE;
|
|
|
|
public interface ICpuMemory
|
|
{
|
|
bool TryRead(ulong virtualAddress, Span<byte> destination);
|
|
|
|
bool TryWrite(ulong virtualAddress, ReadOnlySpan<byte> source);
|
|
|
|
bool TryCompare(ulong virtualAddress, ReadOnlySpan<byte> expected) => false;
|
|
|
|
bool TryCopy(ulong destinationAddress, ulong sourceAddress, ulong length) => false;
|
|
}
|