#NEWLINE# def __init__( self , portable_serializer , data_input , class_def ) : #NEWLINE# #INDENT# self . _portable_serializer = portable_serializer #NEWLINE# self . _in = data_input #NEWLINE# self . _class_def = class_def #NEWLINE# try : #NEWLINE# #INDENT# self . _final_pos = data_input . read_int ( ) #NEWLINE# field_count = data_input . read_int ( ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# raise HazelcastSerializationError ( ) #NEWLINE# #UNINDENT# if ( self != class_def . get_field_count ( ) ) : #NEWLINE# #INDENT# raise ValueError ( 'Field count({}) in stream does not match! {}' . format ( field_count , class_def ) ) #NEWLINE# #UNINDENT# self . _offset = data_input . position ( ) #NEWLINE# self . _raw = False