def unpack(self, s): self.bits_left = 0 self.buffer_byte = None Struct.unpack(self, s)
def unpack(self, s): with BitReadStream(s) as bs: Struct.unpack(self, bs)