eout = out.__open_encapsulation();
eout.write_string(tc.id());
eout.write_string(tc.name());
eout.write_short(tc.type_modifier());
write(eout, base, map);
eout.write_ulong(tc.member_count());
for (int i = 0; i < tc.member_count(); i++) {
eout.write_string(tc.member_name(i));
write(eout, tc.member_type(i), map);