LLDB.Target.ReadMemory C# (CSharp) Method

ReadMemory() public method

Read target memory. If a target process is running then memory

is read from here. Otherwise the memory is read from the object

files. For a target whose bytes are sized as a multiple of host

bytes, the data read back will preserve the target's byte order.

public ReadMemory ( LLDB addr, global buf, uint size, LLDB error ) : uint
addr LLDB /// A target address to read from. ///
buf global /// The buffer to read memory into. ///
size uint /// The maximum number of host bytes to read in the buffer passed /// into this call ///
error LLDB /// Error information is written here if the memory read fails. ///
return uint
        public uint ReadMemory(LLDB.Address addr, global::System.IntPtr buf, uint size, LLDB.Error error)
        {
            var arg0 = ReferenceEquals(addr, null) ? new LLDB.Address.Internal() : *(LLDB.Address.Internal*) (addr.__Instance);
            var arg1 = buf;
            if (ReferenceEquals(error, null))
                throw new global::System.ArgumentNullException("error", "Cannot be null because it is a C++ reference (&).");
            var arg3 = error.__Instance;
            var __ret = Internal.ReadMemory_0((__Instance + __PointerAdjustment), arg0, arg1, size, arg3);
            return __ret;
        }