#NEWLINE# def _loadChunk( self , decoded_chunk_data ) : #NEWLINE# #INDENT# 'Decode hash prefix entries' #NEWLINE# hash_prefixes = [ ] #NEWLINE# chunk_type = 'add' #NEWLINE# prefix_length = 4 #NEWLINE# if ( decoded_chunk_data . chunk_type == 1 ) : #NEWLINE# #INDENT# chunk_type = 'sub' #NEWLINE# #UNINDENT# if ( decoded_chunk_data . prefix_type == 1 ) : #NEWLINE# #INDENT# prefix_length = 32 #NEWLINE# #UNINDENT# hashes_str = decoded_chunk_data . hashes #NEWLINE# hashes_count = ( len ( hashes_str ) / prefix_length ) #NEWLINE# hashes = [ ] #NEWLINE# for i in xrange ( hashes_count ) : #NEWLINE# #INDENT# hashes . append ( hashes_str [ ( prefix_length * i ) : ( prefix_length * ( i + 1 ) ) ] ) #NEWLINE# #UNINDENT# self . hashes = hashes #NEWLINE# self . chunk_number = decoded_chunk_data . chunk_number #NEWLINE# self . chunk_type = chunk_type #NEWLINE# self . prefix_length = prefix_length