#NEWLINE# def read_chars( self , data , offset , length ) : #NEWLINE# #INDENT# "\n    Read 'length' number of chars from data[offset].\n    " #NEWLINE# buf = [ ] #NEWLINE# for i in range ( 0 , length ) : #NEWLINE# #INDENT# char = data [ ( offset + ( i - 1 ) ) : ( offset + i ) ] #NEWLINE# buf . append ( char ) #NEWLINE# #UNINDENT# return ( len ( buf ) , '' . join ( buf ) )