Table of Contents

Interface IContextDirectAccessor

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

Exposes raw contents of the Context in IContext. This locks the buffer. Dispose this object to unlock the buffer

[CLSCompliant(true)]
public interface IContextDirectAccessor : IDisposable

Remarks

The implementation behind the interface has a variety of ways to ensure the memory is safe to write to. The buffer may be in the native heap; or it may be to a pinned object in the managed heap This is primarily intended for writing to the context (by passing the buffer out to a pinvoke), but can also be a way to read the raw bytes.

Properties

RawBuffer

A pointer to the raw buffer. The memory is pinned until this object is disposed. Check the context Flags to know which raw bytes are valid to be read.

Size

The size of the buffer. This should be the same as INativeContext.Size.