MCPcopy
hub / github.com/facebookresearch/encodec / flush

Method flush

encodec/quantization/ac.py:160–167  ·  view source on GitHub ↗

Flush the remaining information to the stream.

(self)

Source from the content-addressed store, hash-verified

158 return outs
159
160 def flush(self):
161 """Flush the remaining information to the stream.
162 """
163 while self.max_bit >= 0:
164 b1 = (self.low >> self.max_bit) & 1
165 self.packer.push(b1)
166 self.max_bit -= 1
167 self.packer.flush()
168
169
170class ArithmeticDecoder:

Callers 2

compress_to_fileFunction · 0.95
testFunction · 0.95

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected