Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ TryGetAlertInfo()

static bool System.Net.Security.TlsFrameHelper.TryGetAlertInfo ( ReadOnlySpan< byte > frame,
ref TlsAlertLevel level,
ref TlsAlertDescription description )
inlinestatic

Definition at line 142 of file TlsFrameHelper.cs.

143 {
144 if (frame.Length < 7 || frame[0] != 21)
145 {
146 return false;
147 }
148 level = (TlsAlertLevel)frame[5];
149 description = (TlsAlertDescription)frame[6];
150 return true;
151 }

References System.ReadOnlySpan< T >.Length.

Referenced by System.Net.Security.TlsFrameHelper.TryGetFrameInfo().