From e8240f311f0f57ae0ad191a0ae8c3e970618765d Mon Sep 17 00:00:00 2001 From: Justin Kotalik Date: Fri, 8 Jan 2021 08:49:48 -0800 Subject: [PATCH] Make const variables internal to be used by other classes (#46693) --- .../Http/aspnetcore/Http3/Helpers/VariableLengthIntegerHelper.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/libraries/Common/src/System/Net/Http/aspnetcore/Http3/Helpers/VariableLengthIntegerHelper.cs b/src/libraries/Common/src/System/Net/Http/aspnetcore/Http3/Helpers/VariableLengthIntegerHelper.cs index 1f2dd4e..8cb1c21 100644 --- a/src/libraries/Common/src/System/Net/Http/aspnetcore/Http3/Helpers/VariableLengthIntegerHelper.cs +++ b/src/libraries/Common/src/System/Net/Http/aspnetcore/Http3/Helpers/VariableLengthIntegerHelper.cs @@ -31,10 +31,11 @@ namespace System.Net.Http private const uint FourByteLengthMask = 0x80000000; private const ulong EightByteLengthMask = 0xC000000000000000; + // public for internal use in aspnetcore public const uint OneByteLimit = (1U << 6) - 1; - private const uint TwoByteLimit = (1U << 16) - 1; - private const uint FourByteLimit = (1U << 30) - 1; - private const long EightByteLimit = (1L << 62) - 1; + public const uint TwoByteLimit = (1U << 16) - 1; + public const uint FourByteLimit = (1U << 30) - 1; + public const long EightByteLimit = (1L << 62) - 1; public static bool TryRead(ReadOnlySpan buffer, out long value, out int bytesRead) { -- 2.7.4