def __call__(self):
        """Increament the counter and return the new value"""
        i = self.blocksize - 1
        while i > -1:
            c = self.value[i] = byte_chr((byte_ord(self.value[i]) + 1) % 256)
            if c != zero_byte:
                return self.value.tostring()
            i -= 1
        # counter reset
        x = deflate_long(self.overflow, add_sign_padding=False)
        self.value = array.array('c', zero_byte * (self.blocksize - len(x)) + x)
        return self.value.tostring()
def __call__ ( self ) : i = self . blocksize - 1 while i > - 1 : c = self . value [ i ] = byte_chr ( ( byte_ord ( self . value [ i ] ) + 1 ) % 256 ) if c != zero_byte : return self . value . tostring ( ) i -= 1 x = deflate_long ( self . overflow , add_sign_padding = False ) self . value = array . array ( 'c' , zero_byte * ( self . blocksize - len ( x ) ) + x ) return self . value . tostring ( )
Increament the counter and return the new value