1 implementation of GetBytes
Microsoft.Diagnostics.DataContractReader.Contracts (1)
Contracts\StackWalk\Context\ContextHolder.cs (1)
47
public ReadOnlySpan<byte>
GetBytes
() => MemoryMarshal.AsBytes(MemoryMarshal.CreateReadOnlySpan(ref Context, 1));
12 references to GetBytes
Microsoft.Diagnostics.DataContractReader.Contracts (8)
Contracts\Debugger\Debugger_1.cs (3)
294
_target.WriteBuffer(espOSContext.Value, ctx.
GetBytes
().ToArray());
311
espContext = StackPusher.Push(_target, ref sp, ctx.
GetBytes
().ToArray(), align: true);
335
ctx.
GetBytes
().CopyTo(context);
Contracts\StackWalk\StackWalk_1.cs (4)
1080
return handle.Context.
GetBytes
();
1418
return context.
GetBytes
().ToArray();
1429
return context.
GetBytes
().ToArray();
1437
return context.
GetBytes
().ToArray();
Contracts\StackWalk\StackWalk_1.ExceptionHandling.cs (1)
112
byte[] seed = funclet.Context.
GetBytes
().ToArray();
Microsoft.Diagnostics.DataContractReader.Legacy (4)
Dbi\DacDbiImpl.cs (4)
2240
context = stripped.
GetBytes
().ToArray();
6797
dstCtx.
GetBytes
()[..destinationSize].CopyTo(new Span<byte>(destinationContext.pContextBytes, destinationSize));
6851
ctx.
GetBytes
()[..(int)ctx.Size].CopyTo(bufSpan);
7092
ctx.
GetBytes
().CopyTo(buf);