Definition at line 619 of file AsnWriter.cs.
620 {
623 {
624 throw new ArgumentOutOfRangeException("value");
625 }
628 {
629 long num = dateTimeOffset.Ticks % 10000000;
631 {
636 {
638 }
640 }
641 }
654 if (!
Utf8Formatter.
TryFormat(
year,
span.Slice(0, 4),
out var bytesWritten2,
format) || !
Utf8Formatter.
TryFormat(month,
span.Slice(4, 2),
out bytesWritten2,
format2) || !
Utf8Formatter.
TryFormat(day,
span.Slice(6, 2),
out bytesWritten2,
format2) || !
Utf8Formatter.
TryFormat(hour,
span.Slice(8, 2),
out bytesWritten2,
format2) || !
Utf8Formatter.
TryFormat(minute,
span.Slice(10, 2),
out bytesWritten2,
format2) || !
Utf8Formatter.
TryFormat(second,
span.Slice(12, 2),
out bytesWritten2,
format2))
655 {
657 }
663 }
static bool TryFormat(bool value, Span< byte > destination, out int bytesWritten, StandardFormat format=default(StandardFormat))
@ InvalidOperationException
References System.Formats.Asn1.AsnWriter._buffer, System.Formats.Asn1.AsnWriter._offset, System.destination, System.format, System.L, System.length, System.Buffers.Text.Utf8Formatter.TryFormat(), System.value, System.Formats.Asn1.AsnWriter.WriteLength(), System.Formats.Asn1.AsnWriter.WriteTag(), and System.year.
Referenced by System.Formats.Asn1.AsnWriter.WriteGeneralizedTime().