MCPcopy Create free account
hub / github.com/babel/minify / length_base

Function length_base

scripts/pyflate.py:223–224  ·  view source on GitHub ↗
(i)

Source from the content-addressed store, hash-verified

221 return (1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577)[i]
222
223def length_base(i):
224 return (3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258)[i-257]
225
226def extra_distance_bits(n):
227 if 0 <= n <= 1:

Callers 1

gzip_mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected