eout = out.__open_encapsulation();
eout.write_string(tc.id());
eout.write_string(tc.name());
eout.write_ulong(tc.member_count());
for (int i = 0; i < tc.member_count(); i++) {
eout.write_string(tc.member_name(i));
// recurse
write(eout, tc.member_type(i), map);
}
out.__close_encapsulation(eout);
break;