#NEWLINE# def _read_values( self , startoffset , endoffset , postcount ) : #NEWLINE# #INDENT# pf = self . postfile #NEWLINE# posting_size = self . format . posting_size #NEWLINE# if ( posting_size != 0 ) : #NEWLINE# #INDENT# valueoffset = startoffset #NEWLINE# if ( posting_size < 0 ) : #NEWLINE# #INDENT# lengths = pf . get_array ( startoffset , 'I' , postcount ) #NEWLINE# valueoffset += ( _INT_SIZE * postcount ) #NEWLINE# #UNINDENT# allvalues = pf . map [ valueoffset : endoffset ] #NEWLINE# if ( posting_size > 0 ) : #NEWLINE# #INDENT# values = [ allvalues [ ( i * posting_size ) : ( ( i * posting_size ) + posting_size ) ] for i in xrange ( postcount ) ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# pos = 0 #NEWLINE# values = [ ] #NEWLINE# for length in lengths : #NEWLINE# #INDENT# values . append ( allvalues [ pos : ( pos + length ) ] ) #NEWLINE# pos += length #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# values = ( ( '' , ) * postcount ) #NEWLINE# #UNINDENT# return values