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));
void READ< G4String >(std::istream &in, G4String &name)
void WRITE< G4String >(std::ostream &out, const G4String &name)
static G4String read(std::istream &is, size_t size)