(self, bit)
| 487 | return self.length |
| 488 | |
| 489 | def put_bit(self, bit): |
| 490 | buf_index = self.length // 8 |
| 491 | if len(self.buffer) <= buf_index: |
| 492 | self.buffer.append(0) |
| 493 | if bit: |
| 494 | self.buffer[buf_index] |= 0x80 >> (self.length % 8) |
| 495 | self.length += 1 |
| 496 | |
| 497 | |
| 498 | def create_bytes(buffer: BitBuffer, rs_blocks: list[RSBlock]): |
no outgoing calls
no test coverage detected