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

◆ RepresentsNull() [2/2]

static bool System.Security.Cryptography.Asn1.AlgorithmIdentifierAsn.RepresentsNull ( ReadOnlyMemory< byte >? parameters)
inlinestaticpackage

Definition at line 49 of file AlgorithmIdentifierAsn.cs.

50 {
51 if (!parameters.HasValue)
52 {
53 return true;
54 }
55 ReadOnlySpan<byte> span = parameters.Value.Span;
56 if (span.Length != 2)
57 {
58 return false;
59 }
60 if (span[0] != 5)
61 {
62 return false;
63 }
64 return span[1] == 0;
65 }

References System.ReadOnlySpan< T >.Length, and System.ReadOnlyMemory< T >.Span.