Table of Contents

Method ReadMemory

Namespace
Microsoft.Samples.Debugging.Native
Assembly
NativeDebugWrappers.dll

ReadMemory(ulong, int)

Read memory from the dump file and return results in newly allocated buffer

public byte[] ReadMemory(ulong targetAddress, int length)

Parameters

targetAddress ulong

target address in dump to read length bytes from

length int

number of bytes to read

Returns

byte[]

newly allocated byte array containing dump memory

Remarks

All memory requested must be readable or it throws.

ReadMemory(ulong, byte[])

Read memory from the dump file and copy into the buffer

public void ReadMemory(ulong targetAddress, byte[] buffer)

Parameters

targetAddress ulong

target address in dump to read buffer.Length bytets from

buffer byte[]

destination buffer to copy target memory to.

Remarks

All memory requested must be readable or it throws.

ReadMemory(ulong, IntPtr, uint)

Read memory from target and copy it to the local buffer pointed to by destinationBuffer. Throw if any portion of the requested memory is unavailable.

public void ReadMemory(ulong targetRequestStart, IntPtr destinationBuffer, uint destinationBufferSizeInBytes)

Parameters

targetRequestStart ulong

target address in dump file to copy destinationBufferSizeInBytes bytes from.

destinationBuffer IntPtr

pointer to copy the memory to.

destinationBufferSizeInBytes uint

size of the destinationBuffer in bytes.