Go to the source code of this file.
template<typename T >
void READ |
( |
std::istream & |
in, |
|
|
T & |
toBeSaved |
|
) |
| |
Definition at line 49 of file G4Serialize.hh.
51 in.read((
char*)(&toBeSaved),
sizeof(toBeSaved));
Definition at line 67 of file G4Serialize.cc.
70 in.read((
char*)(&size),
sizeof(
size_t));
static G4String read(std::istream &is, size_t size)
template<typename T >
void WRITE |
( |
std::ostream & |
out, |
|
|
const T & |
toBeSaved |
|
) |
| |
Definition at line 41 of file G4Serialize.hh.
43 out.write((
char*)(&toBeSaved),
sizeof(toBeSaved));
Definition at line 37 of file G4Serialize.cc.
39 size_t size = name.size();
40 out.write((
char*)(&size),
sizeof(
size_t));
41 out.write(name.c_str(), size);