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

◆ GetEncodedLengthSubsequentByteCount()

static int System.Formats.Asn1.AsnWriter.GetEncodedLengthSubsequentByteCount ( int length)
inlinestaticprivate

Definition at line 303 of file AsnWriter.cs.

304 {
305 if (length < 0)
306 {
307 throw new OverflowException();
308 }
309 if (length <= 127)
310 {
311 return 0;
312 }
313 if (length <= 255)
314 {
315 return 1;
316 }
317 if (length <= 65535)
318 {
319 return 2;
320 }
321 if (length <= 16777215)
322 {
323 return 3;
324 }
325 return 4;
326 }

References System.length.

Referenced by System.Formats.Asn1.AsnWriter.DetermineCerBitStringTotalLength(), System.Formats.Asn1.AsnWriter.PopTag(), System.Formats.Asn1.AsnWriter.WriteConstructedCerOctetString(), and System.Formats.Asn1.AsnWriter.WriteLength().