#NEWLINE# def __init__( self , cfg ) : #NEWLINE# #INDENT# self . _cfg = cfg #NEWLINE# self . _cg = barectf . codegen . CodeGenerator ( '\t' ) #NEWLINE# self . _type_to_get_ctype_func = { #NEWLINE# #INDENT# metadata . Integer : self . _get_int_ctype , #NEWLINE# metadata . FloatingPoint : self . _get_float_ctype , #NEWLINE# metadata . Enum : self . _get_enum_ctype , #NEWLINE# metadata . String : self . _get_string_ctype , #NEWLINE# #UNINDENT# } #NEWLINE# self . _type_to_generate_serialize_func = { #NEWLINE# #INDENT# metadata . Integer : self . _generate_serialize_int , #NEWLINE# metadata . FloatingPoint : self . _generate_serialize_float , #NEWLINE# metadata . Enum : self . _generate_serialize_enum , #NEWLINE# metadata . String : self . _generate_serialize_string , #NEWLINE# #UNINDENT# } #NEWLINE# self . _saved_byte_offsets = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . _uf_written = False #NEWLINE# self . _ud_written = False #NEWLINE# self . _sasa = _StaticAlignSizeAutomatonByteOffset ( )