@@ -77,8 +77,8 @@ public DeflaterHuffman(MemoryAllocator memoryAllocator)
7777
7878 // See RFC 1951 3.2.6
7979 // Literal codes
80- private static readonly short [ ] StaticLCodes = new short [ ]
81- {
80+ private static readonly short [ ] StaticLCodes =
81+ [
8282 12 , 140 , 76 , 204 , 44 , 172 , 108 , 236 , 28 , 156 , 92 , 220 , 60 , 188 , 124 , 252 ,
8383 2 , 130 , 66 , 194 , 34 , 162 , 98 , 226 , 18 , 146 , 82 , 210 , 50 , 178 , 114 , 242 ,
8484 10 , 138 , 74 , 202 , 42 , 170 , 106 , 234 , 26 , 154 , 90 , 218 , 58 , 186 , 122 , 250 ,
@@ -97,10 +97,10 @@ public DeflaterHuffman(MemoryAllocator memoryAllocator)
9797 31 , 287 , 159 , 415 , 95 , 351 , 223 , 479 , 63 , 319 , 191 , 447 , 127 , 383 , 255 , 511 ,
9898 0 , 64 , 32 , 96 , 16 , 80 , 48 , 112 , 8 , 72 , 40 , 104 , 24 , 88 , 56 , 120 , 4 , 68 , 36 ,
9999 100 , 20 , 84 , 52 , 116 , 3 , 131 , 67 , 195 , 35 , 163
100- } ;
100+ ] ;
101101
102- private static ReadOnlySpan < byte > StaticLLength => new byte [ ]
103- {
102+ private static ReadOnlySpan < byte > StaticLLength =>
103+ [
104104 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 ,
105105 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 ,
106106 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 ,
@@ -119,34 +119,34 @@ public DeflaterHuffman(MemoryAllocator memoryAllocator)
119119 9 , 9 , 9 , 9 , 9 , 9 , 9 , 9 , 9 , 9 , 9 , 9 , 9 , 9 , 9 , 9 ,
120120 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 ,
121121 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 8 , 8 , 8 , 8 , 8 , 8
122- } ;
122+ ] ;
123123
124124 // Distance codes and lengths.
125- private static readonly short [ ] StaticDCodes = new short [ ]
126- {
125+ private static readonly short [ ] StaticDCodes =
126+ [
127127 0 , 16 , 8 , 24 , 4 , 20 , 12 , 28 , 2 , 18 , 10 , 26 , 6 , 22 , 14 ,
128128 30 , 1 , 17 , 9 , 25 , 5 , 21 , 13 , 29 , 3 , 19 , 11 , 27 , 7 , 23
129- } ;
129+ ] ;
130130
131- private static ReadOnlySpan < byte > StaticDLength => new byte [ ]
132- {
131+ private static ReadOnlySpan < byte > StaticDLength =>
132+ [
133133 5 , 5 , 5 , 5 , 5 , 5 , 5 , 5 , 5 , 5 , 5 , 5 , 5 , 5 , 5 ,
134134 5 , 5 , 5 , 5 , 5 , 5 , 5 , 5 , 5 , 5 , 5 , 5 , 5 , 5 , 5
135- } ;
135+ ] ;
136136#pragma warning restore SA1201 // Elements should appear in the correct order
137137
138138 /// <summary>
139139 /// Gets the lengths of the bit length codes are sent in order of decreasing probability, to avoid transmitting the lengths for unused bit length codes.
140140 /// </summary>
141- private static ReadOnlySpan < byte > BitLengthOrder => new byte [ ]
142- {
141+ private static ReadOnlySpan < byte > BitLengthOrder =>
142+ [
143143 16 , 17 , 18 , 0 , 8 , 7 , 9 , 6 , 10 , 5 , 11 , 4 , 12 , 3 , 13 , 2 , 14 , 1 , 15
144- } ;
144+ ] ;
145145
146- private static ReadOnlySpan < byte > Bit4Reverse => new byte [ ]
147- {
146+ private static ReadOnlySpan < byte > Bit4Reverse =>
147+ [
148148 0 , 8 , 4 , 12 , 2 , 10 , 6 , 14 , 1 , 9 , 5 , 13 , 3 , 11 , 7 , 15
149- } ;
149+ ] ;
150150
151151 /// <summary>
152152 /// Gets the pending buffer to use.
0 commit comments