Ejemplo n.º 1
0
        public uint ReadDwordUnsafe(ulong addr)
        {
            int read = _core.ReadMemory((long)addr, _buffer, 4);

            if (read == 4)
            {
                return(BitConverter.ToUInt32(_buffer, 0));
            }

            return(0);
        }
Ejemplo n.º 2
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);
        }
Ejemplo n.º 3
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);
        }
Ejemplo n.º 4
0
 public override int Read(ulong address, Span <byte> buffer)
 {
     DebugOnly.Assert(!buffer.IsEmpty);
     return(address > long.MaxValue ? 0 : _core.ReadMemory(address, buffer));
 }
Ejemplo n.º 5
0
 public bool ReadMemory(ulong address, Span <byte> buffer, out int bytesRead)
 {
     bytesRead = _core.ReadMemory((long)address, buffer);
     return(bytesRead > 0);
 }