public uint ReadDwordUnsafe(ulong addr) { int read = _core.ReadMemory((long)addr, _buffer, 4); if (read == 4) { return(BitConverter.ToUInt32(_buffer, 0)); } return(0); }
public bool Read(ulong address, Span <byte> buffer, out int bytesRead) { if (address > long.MaxValue) { bytesRead = 0; return(false); } bytesRead = _core.ReadMemory((long)address, buffer); return(bytesRead > 0); }
public bool Read(ulong address, Span <byte> buffer, out int bytesRead) { DebugOnly.Assert(!buffer.IsEmpty); if (address > long.MaxValue) { bytesRead = 0; return(false); } bytesRead = _core.ReadMemory((long)address, buffer); return(bytesRead > 0); }
public override int Read(ulong address, Span <byte> buffer) { DebugOnly.Assert(!buffer.IsEmpty); return(address > long.MaxValue ? 0 : _core.ReadMemory(address, buffer)); }
public bool ReadMemory(ulong address, Span <byte> buffer, out int bytesRead) { bytesRead = _core.ReadMemory((long)address, buffer); return(bytesRead > 0); }