(bits, _CODEBITS=_CODEBITS, _int=int)
| 398 | MAXCODE = (1 << _CODEBITS) - 1 |
| 399 | _BITS_TRANS = b'0' + b'1' * 255 |
| 400 | def _mk_bitmap(bits, _CODEBITS=_CODEBITS, _int=int): |
| 401 | s = bits.translate(_BITS_TRANS)[::-1] |
| 402 | return [_int(s[i - _CODEBITS: i], 2) |
| 403 | for i in range(len(s), 0, -_CODEBITS)] |
| 404 | |
| 405 | def _bytes_to_codes(b): |
| 406 | # Convert block indices to word array |
no test coverage detected
searching dependent graphs…