39 size_t size =
name.size();
40 out.write((
char*)(&size),
sizeof(
size_t));
41 out.write(
name.c_str(), size);
54 char* buff =
new char[size];
56 returnStr.assign(buff, size);
70 in.read((
char*)(&size),
sizeof(
size_t));
static G4String read(std::istream &is, size_t size)
void WRITE< G4String >(std::ostream &out, const G4String &name)
void READ< G4String >(std::istream &in, G4String &name)