Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
MsQuicAlpnHelper.cs
Go to the documentation of this file.
5
7
8internal static class MsQuicAlpnHelper
9{
11 {
14 try
15 {
16 for (int i = 0; i < alpnProtocols.Count; i++)
17 {
21 buffers[i].Buffer = (byte*)memoryHandle.Pointer;
22 buffers[i].Length = (uint)protocol.Length;
23 }
24 }
25 catch
26 {
28 throw;
29 }
30 }
31
33 {
35 if (array != null)
36 {
39 {
40 memoryHandle.Dispose();
41 }
42 handles = null;
43 ArrayPool<MemoryHandle>.Shared.Return(array);
44 }
46 if (array3 != null)
47 {
48 buffers = null;
50 }
51 }
52}
static unsafe void Prepare(List< SslApplicationProtocol > alpnProtocols, [NotNull] out MemoryHandle[] handles, [NotNull] out MsQuicNativeMethods.QuicBuffer[] buffers)
static void Return(ref MemoryHandle[] handles, ref MsQuicNativeMethods.QuicBuffer[] buffers)