11 references to GetByteCount
InMemory.FunctionalTests (3)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (3)
885var data = new byte[VariableLengthIntegerHelper.GetByteCount(streamId)]; 905length += VariableLengthIntegerHelper.GetByteCount((long)setting.Parameter); 906length += VariableLengthIntegerHelper.GetByteCount(setting.Value);
Microsoft.AspNetCore.Server.Kestrel.Core (4)
Internal\Http3\Http3FrameWriter.cs (3)
135length += VariableLengthIntegerHelper.GetByteCount((long)setting.Parameter); 136length += VariableLengthIntegerHelper.GetByteCount(setting.Value); 241var length = VariableLengthIntegerHelper.GetByteCount(id);
src\Shared\runtime\Http3\Frames\Http3Frame.cs (1)
43Debug.Assert(VariableLengthIntegerHelper.GetByteCount((long)frameType) == 1, $"{nameof(TryWriteFrameEnvelope)} assumes {nameof(frameType)} will fit within a single byte varint.");
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Shared\test\Shared.Tests\runtime\Http3\VariableLengthIntegerHelperTests.cs (1)
366int result = VariableLengthIntegerHelper.GetByteCount(longToEncode);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (3)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (3)
885var data = new byte[VariableLengthIntegerHelper.GetByteCount(streamId)]; 905length += VariableLengthIntegerHelper.GetByteCount((long)setting.Parameter); 906length += VariableLengthIntegerHelper.GetByteCount(setting.Value);