14 if (
file_ ==
nullptr) {
15 std::cout <<
"file " <<
name <<
" cannot be opened for writing" << std::endl;
37 fwrite(&
n,
sizeof(
n), 1,
file_);
41 fwrite(&
n,
sizeof(
n), 1,
file_);
45 fwrite(&
n,
sizeof(
n), 1,
file_);
49 fwrite(&
n,
sizeof(
n), 1,
file_);
53 fwrite(&
n,
sizeof(
n), 1,
file_);
57 fwrite(&
n,
sizeof(
n), 1,
file_);
61 fwrite(&
n,
sizeof(
n), 1,
file_);
65 fwrite(&
n,
sizeof(
n), 1,
file_);
75 fwrite(
s.data(), 1,
s.size(),
file_);
void init(const char *name)
binary_ofstream(const char *name)
binary_ofstream & operator<<(char n)