28 references to VariableLengthIntegerHelper
Microsoft.AspNetCore.Shared.Tests (28)
runtime\Http3\VariableLengthIntegerHelperTests.cs (23)
17
bool isSuccess =
VariableLengthIntegerHelper
.TryRead(readOnlySpan,
32
bool isSuccess =
VariableLengthIntegerHelper
.TryRead(readOnlySpan,
48
bool isSuccess =
VariableLengthIntegerHelper
.TryRead(readOnlySpan,
63
bool isSuccess =
VariableLengthIntegerHelper
.TryRead(readOnlySpan,
81
bool isSuccess =
VariableLengthIntegerHelper
.TryRead(readOnlySpan,
96
bool isSuccess =
VariableLengthIntegerHelper
.TryRead(readOnlySpan,
113
bool isSuccess =
VariableLengthIntegerHelper
.TryRead(readOnlySpan,
128
bool isSuccess =
VariableLengthIntegerHelper
.TryRead(readOnlySpan,
144
bool isSuccess =
VariableLengthIntegerHelper
.TryRead(ref sequenceReader,
180
bool isSuccess =
VariableLengthIntegerHelper
.TryRead(ref sequenceReader,
196
bool isSuccess =
VariableLengthIntegerHelper
.TryRead(ref sequenceReader,
212
bool isSuccess =
VariableLengthIntegerHelper
.TryRead(ref sequenceReader,
226
long result =
VariableLengthIntegerHelper
.GetInteger(readOnlySequence,
241
long result =
VariableLengthIntegerHelper
.GetInteger(readOnlySequence,
254
bool isSuccess =
VariableLengthIntegerHelper
.TryWrite(span,
268
bool isSuccess =
VariableLengthIntegerHelper
.TryWrite(span,
284
bool isSuccess =
VariableLengthIntegerHelper
.TryWrite(span,
297
bool isSuccess =
VariableLengthIntegerHelper
.TryWrite(span,
312
bool isSuccess =
VariableLengthIntegerHelper
.TryWrite(span,
325
bool isSuccess =
VariableLengthIntegerHelper
.TryWrite(span,
340
bool isSuccess =
VariableLengthIntegerHelper
.TryWrite(span,
353
bool isSuccess =
VariableLengthIntegerHelper
.TryWrite(span,
367
int result =
VariableLengthIntegerHelper
.GetByteCount(longToEncode);
src\Shared\runtime\Http3\Frames\Http3Frame.cs (5)
10
public const int MaximumEncodedFrameEnvelopeLength = 1 +
VariableLengthIntegerHelper
.MaximumEncodedLength; // Frame type + payload length.
17
if (
VariableLengthIntegerHelper
.TryRead(buffer, out a, out int aLength))
20
if (
VariableLengthIntegerHelper
.TryRead(buffer, out b, out int bLength))
43
Debug.Assert(
VariableLengthIntegerHelper
.GetByteCount((long)frameType) == 1, $"{nameof(TryWriteFrameEnvelope)} assumes {nameof(frameType)} will fit within a single byte varint.");
50
if (
VariableLengthIntegerHelper
.TryWrite(buffer, payloadLength, out int payloadLengthEncodedLength))