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

◆ GetByteCount()

static int System.Net.Http.VariableLengthIntegerHelper.GetByteCount ( long value)
inlinestatic

Definition at line 98 of file VariableLengthIntegerHelper.cs.

99 {
100 if (value >= 63)
101 {
102 if (value >= 16383)
103 {
104 if (value >= 1073741823)
105 {
106 return 8;
107 }
108 return 4;
109 }
110 return 2;
111 }
112 return 1;
113 }

References System.value.

Referenced by System.Net.Http.Http3RequestStream.BufferHeaders().