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{
9 public readonly SecurityBufferType Type;
10
11 public readonly ReadOnlySpan<byte> Token;
12
13 public readonly SafeHandle UnmanagedToken;
14
16 {
17 Token = data;
18 Type = tokentype;
19 UnmanagedToken = null;
20 }
21
23 {
24 Type = SecurityBufferType.SECBUFFER_CHANNEL_BINDINGS;
25 Token = default(ReadOnlySpan<byte>);
26 UnmanagedToken = binding;
27 }
28}
InputSecurityBuffer(ReadOnlySpan< byte > data, SecurityBufferType tokentype)