From: Justin Kotalik Date: Fri, 8 Jan 2021 16:49:48 +0000 (-0800) Subject: Make const variables internal to be used by other classes (#46693) X-Git-Tag: submit/tizen/20210909.063632~3874 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e8240f311f0f57ae0ad191a0ae8c3e970618765d;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Make const variables internal to be used by other classes (#46693) --- 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) {