15 if (
file_ ==
nullptr) {
16 std::cout <<
"file " <<
name <<
" cannot be opened for writing" << std::endl;
38 fwrite(&
n,
sizeof(
n), 1,
file_);
42 fwrite(&
n,
sizeof(
n), 1,
file_);
46 fwrite(&
n,
sizeof(
n), 1,
file_);
50 fwrite(&
n,
sizeof(
n), 1,
file_);
54 fwrite(&
n,
sizeof(
n), 1,
file_);
58 fwrite(&
n,
sizeof(
n), 1,
file_);
62 fwrite(&
n,
sizeof(
n), 1,
file_);
66 fwrite(&
n,
sizeof(
n), 1,
file_);
76 fwrite(
s.data(), 1,
s.size(),
file_);
void init(const char *name)
binary_ofstream(const char *name)
binary_ofstream & operator<<(char n)