public ReadOnlySpan <byte> GetResult(double timeout) { Span <byte> store = Span <byte> .Empty; var result = NtCore.GetRpcResult(Entry.Handle, Handle, timeout, store); return(result); }
public Task <byte[]> GetResultAsync(CancellationToken token = default) { NtEntry handle = Entry.Handle; NtRpcCall call = Handle; token.Register(() => { NtCore.CancelRpcResult(handle, call); }); return(Task.Run(() => { return NtCore.GetRpcResult(handle, call, Span <byte> .Empty).ToArray(); })); }
public ReadOnlySpan <byte> GetResult(Span <byte> store) { var result = NtCore.GetRpcResult(Entry.Handle, Handle, store); return(result); }