(self, data)
Turn the list of bits -> data, into a string
Turn the list of bits -> data, into a string
Turn the list of bits - > data into a string
def __BitList_to_String(self, data):
        """Turn the list of bits -> data, into a string"""
        result = [0] * (len(data) >> 3)
        pos = 0
        while pos < len(data):
            c  = data[pos + 0] << (7 - 0)
            c += data[pos + 1] << (7 - 1)
            c += data[pos + 2] << (7 - 2)
            c += data[pos + 3] << (7 - 3)
            c += data[pos + 4] << (7 - 4)
            c += data[pos + 5] << (7 - 5)
            c += data[pos + 6] << (7 - 6)
            c += data[pos + 7] << (7 - 7)
            result[pos >> 3] = c
            pos += 8

        if _pythonMajorVersion < 3:
            return ''.join([ chr(c) for c in result ])
        else:
            return bytes(result)
def __BitList_to_String ( self , data ) : result = [ 0 ] * ( len ( data ) >> 3 ) pos = 0 while pos < len ( data ) : c = data [ pos + 0 ] << ( 7 - 0 ) c += data [ pos + 1 ] << ( 7 - 1 ) c += data [ pos + 2 ] << ( 7 - 2 ) c += data [ pos + 3 ] << ( 7 - 3 ) c += data [ pos + 4 ] << ( 7 - 4 ) c += data [ pos + 5 ] << ( 7 - 5 ) c += data [ pos + 6 ] << ( 7 - 6 ) c += data [ pos + 7 ] << ( 7 - 7 ) result [ pos >> 3 ] = c pos += 8 if _pythonMajorVersion < 3 : return '' . join ( [ chr ( c ) for c in result ] ) else : return bytes ( result )