Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
InputSecurityBuffer.cs
Go to the documentation of this file.
3
4namespace System.Net.Security;
5
6[StructLayout(LayoutKind.Auto)]
7internal readonly ref struct InputSecurityBuffer
8{
10
11 public readonly ReadOnlySpan<byte> Token;
12
13 public readonly SafeHandle UnmanagedToken;
14
15 public InputSecurityBuffer(ReadOnlySpan<byte> data, System.Net.Security.SecurityBufferType tokentype)
16 {
17 Token = data;
18 Type = tokentype;
19 UnmanagedToken = null;
20 }
21
23 {
24 Type = System.Net.Security.SecurityBufferType.SECBUFFER_CHANNEL_BINDINGS;
25 Token = default(ReadOnlySpan<byte>);
26 UnmanagedToken = binding;
27 }
28}
InputSecurityBuffer(ReadOnlySpan< byte > data, System.Net.Security.SecurityBufferType tokentype)
readonly System.Net.Security.SecurityBufferType Type