23 references to VariableLengthIntegerHelper
Microsoft.AspNetCore.Server.Kestrel.Core (23)
Internal\Http3\Http3Connection.cs (1)
706
SendGoAwayAsync(
VariableLengthIntegerHelper
.EightByteLimit).Preserve();
Internal\Http3\Http3ControlStream.cs (3)
162
var id =
VariableLengthIntegerHelper
.GetInteger(readableBuffer, out consumed, out examined);
336
var id =
VariableLengthIntegerHelper
.GetInteger(payload, out var consumed, out _);
344
var value =
VariableLengthIntegerHelper
.GetInteger(payload, out consumed, out _);
Internal\Http3\Http3FrameReader.cs (2)
27
var type =
VariableLengthIntegerHelper
.GetInteger(readableBuffer, out consumed, out _);
35
var length =
VariableLengthIntegerHelper
.GetInteger(firstLengthBuffer, out consumed, out _);
Internal\Http3\Http3FrameWriter.cs (11)
106
var buffer = _outputWriter.GetSpan(settingsLength +
VariableLengthIntegerHelper
.MaximumEncodedLength + 1);
116
var settingsBytesWritten =
VariableLengthIntegerHelper
.WriteInteger(buffer, settingsLength);
135
length +=
VariableLengthIntegerHelper
.GetByteCount((long)setting.Parameter);
136
length +=
VariableLengthIntegerHelper
.GetByteCount(setting.Value);
145
var parameterLength =
VariableLengthIntegerHelper
.WriteInteger(destination, (long)setting.Parameter);
148
var valueLength =
VariableLengthIntegerHelper
.WriteInteger(destination, (long)setting.Value);
156
_outputWriter.Advance(
VariableLengthIntegerHelper
.WriteInteger(buffer, id));
241
var length =
VariableLengthIntegerHelper
.GetByteCount(id);
248
VariableLengthIntegerHelper
.WriteInteger(buffer, id);
284
var typeLength =
VariableLengthIntegerHelper
.WriteInteger(buffer, (int)frameType);
288
var lengthLength =
VariableLengthIntegerHelper
.WriteInteger(buffer, (int)frameLength);
Internal\Http3\Http3PendingStream.cs (1)
63
var value =
VariableLengthIntegerHelper
.GetInteger(readableBuffer, out consumed, out _);
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))