compiler/cpp/src/generate/t_go_generator.cc
/**
 * Serializes the members of a map.
 *
 */
Serializes the members of a map.
Serializes the members of a map .
void t_go_generator::generate_serialize_map_element(ofstream &out,
                                                     t_map* tmap,
                                                     string kiter,
                                                     string viter,
                                                     string err) {
  t_field kfield(tmap->get_key_type(), kiter);
  generate_serialize_field(out, &kfield, "", err);
  t_field vfield(tmap->get_val_type(), viter);
  generate_serialize_field(out, &vfield, "", err);
}
void t_go_generator :: generate_serialize_map_element ( ofstream & out , t_map * tmap , string kiter , string viter , string err ) { t_field kfield ( tmap -> get_key_type ( ) , kiter ) ; generate_serialize_field ( out , & kfield , " " , err ) ; t_field vfield ( tmap -> get_val_type ( ) , viter ) ; generate_serialize_field ( out , & vfield , " " , err ) ; }
Serializes the members of a map.
Serializes the members of a map .