Make const variables internal to be used by other classes (#46693)
authorJustin Kotalik <jukotali@microsoft.com>
Fri, 8 Jan 2021 16:49:48 +0000 (08:49 -0800)
committerGitHub <noreply@github.com>
Fri, 8 Jan 2021 16:49:48 +0000 (08:49 -0800)
src/libraries/Common/src/System/Net/Http/aspnetcore/Http3/Helpers/VariableLengthIntegerHelper.cs

index 1f2dd4e..8cb1c21 100644 (file)
@@ -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<byte> buffer, out long value, out int bytesRead)
         {