#NEWLINE# def write( self , stream , index ) : #NEWLINE# #INDENT# if self . integer : #NEWLINE# #INDENT# stream . write_u30 ( ( len ( self . integer ) + 1 ) ) #NEWLINE# for i in self . integer : #NEWLINE# #INDENT# stream . write_s32 ( i ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# stream . write_u30 ( 0 ) #NEWLINE# #UNINDENT# if self . uinteger : #NEWLINE# #INDENT# stream . write_u30 ( ( len ( self . uinteger ) + 1 ) ) #NEWLINE# for i in self . uinteger : #NEWLINE# #INDENT# stream . write_u32 ( i ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# stream . write_u30 ( 0 ) #NEWLINE# #UNINDENT# if self . double : #NEWLINE# #INDENT# stream . write_u30 ( ( len ( self . double ) + 1 ) ) #NEWLINE# for i in self . double : #NEWLINE# #INDENT# stream . write_d64 ( i ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# stream . write_u30 ( 0 ) #NEWLINE# #UNINDENT# if self . string : #NEWLINE# #INDENT# stream . write_u30 ( ( len ( self . string ) + 1 ) ) #NEWLINE# for i in self . string : #NEWLINE# #INDENT# s = i . encode ( 'utf-8' ) #NEWLINE# stream . write_u30 ( len ( s ) ) #NEWLINE# stream . write ( s ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# stream . write_u30 ( 0 ) #NEWLINE# #UNINDENT# if self . namespace_info : #NEWLINE# #INDENT# stream . write_u30 ( ( len ( self . namespace_info ) + 1 ) ) #NEWLINE# for ni in self . namespace_info : #NEWLINE# #INDENT# ni . write ( stream , index ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# stream . write_u30 ( 0 ) #NEWLINE# #UNINDENT# if self . ns_set_info : #NEWLINE# #INDENT# stream . write_u30 ( ( len ( self . ns_set_info ) + 1 ) ) #NEWLINE# for ns in self . ns_set_info : #NEWLINE# #INDENT# ns . write ( stream , index ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# stream . write_u30 ( 0 ) #NEWLINE# #UNINDENT# if self . multiname_info : #NEWLINE# #INDENT# stream . write_u30 ( ( len ( self . multiname_info ) + 1 ) ) #NEWLINE# for mi in self . multiname_info : #NEWLINE# #INDENT# mi . write ( stream , index ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# stream . write_u30 ( 0 )