Method GetDetourBytes
GetDetourBytes(NativeDetourInfo, Span<byte>, out IDisposable?)
Gets the actual bytes making up the specified detour.
int GetDetourBytes(NativeDetourInfo info, Span<byte> buffer, out IDisposable? allocationHandle)
Parameters
info
NativeDetourInfo- The NativeDetourInfo representing the detour.
buffer
Span<byte>- A buffer which will hold the byte sequence. It must be at least Size bytes in length.
allocationHandle
IDisposable- A handle to any allocation which must stay alive with the detour.
Returns
- int
- The number of bytes written to the buffer.
- See Also