#NEWLINE# def write( self , oprot ) : #NEWLINE# #INDENT# if ( ( oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated ) and ( self . thrift_spec is not None ) and ( fastbinary is not None ) ) : #NEWLINE# #INDENT# oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) #NEWLINE# return #NEWLINE# #UNINDENT# oprot . writeStructBegin ( 'ScanResult' ) #NEWLINE# if ( self . results is not None ) : #NEWLINE# #INDENT# oprot . writeFieldBegin ( 'results' , TType . LIST , 1 ) #NEWLINE# oprot . writeListBegin ( TType . STRUCT , len ( self . results ) ) #NEWLINE# for iter6 in self . results : #NEWLINE# #INDENT# iter6 . write ( oprot ) #NEWLINE# #UNINDENT# oprot . writeListEnd ( ) #NEWLINE# oprot . writeFieldEnd ( ) #NEWLINE# #UNINDENT# if ( self . more is not None ) : #NEWLINE# #INDENT# oprot . writeFieldBegin ( 'more' , TType . BOOL , 2 ) #NEWLINE# oprot . writeBool ( self . more ) #NEWLINE# oprot . writeFieldEnd ( ) #NEWLINE# #UNINDENT# oprot . writeFieldStop ( ) #NEWLINE# oprot . writeStructEnd ( )