Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
AttributeAsn.cs
Go to the documentation of this file.
2
4
5internal struct AttributeAsn
6{
7 internal string AttrType;
8
10
11 internal void Encode(AsnWriter writer)
12 {
14 }
15
16 internal void Encode(AsnWriter writer, Asn1Tag tag)
17 {
18 writer.PushSequence(tag);
19 try
20 {
21 writer.WriteObjectIdentifier(AttrType);
22 }
23 catch (ArgumentException inner)
24 {
26 }
27 writer.PushSetOf();
28 for (int i = 0; i < AttrValues.Length; i++)
29 {
30 try
31 {
32 writer.WriteEncodedValue(AttrValues[i].Span);
33 }
34 catch (ArgumentException inner2)
35 {
37 }
38 }
39 writer.PopSetOf();
40 writer.PopSequence(tag);
41 }
42
43 public AttributeAsn(AsnEncodedData attribute)
44 {
45 if (attribute == null)
46 {
47 throw new ArgumentNullException("attribute");
48 }
49 AttrType = attribute.Oid.Value;
51 {
52 new ReadOnlyMemory<byte>(attribute.RawData)
53 };
54 }
55}
static string Cryptography_Der_Invalid_Encoding
Definition SR.cs:50
Definition SR.cs:7
static readonly Asn1Tag Sequence
Definition Asn1Tag.cs:29
void Encode(AsnWriter writer, Asn1Tag tag)