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

◆ WriteTag()

void System.Formats.Asn1.AsnWriter.WriteTag ( Asn1Tag tag)
inlineprivate

Definition at line 261 of file AsnWriter.cs.

262 {
263 int num = tag.CalculateEncodedSize();
265 if (!tag.TryEncode(_buffer.AsSpan(_offset, num), out var bytesWritten) || bytesWritten != num)
266 {
267 throw new InvalidOperationException();
268 }
269 _offset += num;
270 }
void EnsureWriteCapacity(int pendingCount)
Definition AsnWriter.cs:246

References System.Formats.Asn1.AsnWriter._buffer, System.Formats.Asn1.AsnWriter._offset, System.Formats.Asn1.Asn1Tag.CalculateEncodedSize(), System.Formats.Asn1.AsnWriter.EnsureWriteCapacity(), and System.Formats.Asn1.Asn1Tag.TryEncode().

Referenced by System.Formats.Asn1.AsnWriter.PushTag(), System.Formats.Asn1.AsnWriter.WriteBitStringCore(), System.Formats.Asn1.AsnWriter.WriteBooleanCore(), System.Formats.Asn1.AsnWriter.WriteCharacterStringCore(), System.Formats.Asn1.AsnWriter.WriteConstructedCerBitString(), System.Formats.Asn1.AsnWriter.WriteConstructedCerOctetString(), System.Formats.Asn1.AsnWriter.WriteGeneralizedTimeCore(), System.Formats.Asn1.AsnWriter.WriteIntegerCore(), System.Formats.Asn1.AsnWriter.WriteIntegerCore(), System.Formats.Asn1.AsnWriter.WriteIntegerCore(), System.Formats.Asn1.AsnWriter.WriteIntegerUnsignedCore(), System.Formats.Asn1.AsnWriter.WriteNonNegativeIntegerCore(), System.Formats.Asn1.AsnWriter.WriteNullCore(), System.Formats.Asn1.AsnWriter.WriteObjectIdentifierCore(), System.Formats.Asn1.AsnWriter.WriteOctetStringCore(), and System.Formats.Asn1.AsnWriter.WriteUtcTimeCore().