#NEWLINE# def get_data_byte_array( self , buffer = False ) : #NEWLINE# #INDENT# 'Return a list of data for all blocks in this chunk.' #NEWLINE# if buffer : #NEWLINE# #INDENT# length = len ( buffer . dataList ) #NEWLINE# return BytesIO ( ( pack ( '>i' , length ) + self . get_data_byte_array ( ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return array . array ( 'B' , self . dataList ) . tostring ( )