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

Function extra_length_bits

scripts/pyflate.py:234–240  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

232 raise "illegal distance code"
233
234def extra_length_bits(n):
235 if 257 <= n <= 260 or n == 285:
236 return 0
237 elif 261 <= n <= 284:
238 return ((n-257) >> 2) - 1
239 else:
240 raise "illegal length code"
241
242def move_to_front(l, c):
243 l[:] = l[c:c+1] + l[0:c] + l[c+1:]

Callers 1

gzip_mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected