37 #ifdef CHECK_MEMORY_LEAKS
39 #endif // CHECK_MEMORY_LEAKS
51 const bool isTyped,
const bool doValidate)
52 : myStream(name.c_str(), std::fstream::in | std::fstream::binary),
53 myAmTyped(isTyped), myEnableValidation(doValidate) {}
77 return std::string(
myBuffer, numBytes);
112 os.
myStream.read((
char*) &c,
sizeof(
unsigned char));
120 os.
myStream.read((
char*) &i,
sizeof(
int));
128 os.
myStream.read((
char*) &i,
sizeof(
unsigned int));
138 os.
myStream.read((
char*) &v,
sizeof(
int));
151 os.
myStream.read((
char*) &b,
sizeof(
char));
160 os.
myStream.read((
char*) &size,
sizeof(
unsigned int));
174 os.
myStream.read((
char*) &size,
sizeof(
unsigned int));
189 os.
myStream.read((
char*) &size,
sizeof(
unsigned int));
204 os.
myStream.read((
char*) &size,
sizeof(
unsigned int));
206 std::vector<unsigned int> nested;
221 os.
myStream.read((
char*) &v,
sizeof(
int));
223 os.
myStream.read((
char*) &v,
sizeof(
int));
226 os.
myStream.read((
char*) &v,
sizeof(
int));