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