40 case Set: this->seekp(spos, ios::beg);
break;
41 case Add: this->seekp(spos, ios::cur);
break;
42 case End: this->seekp(spos, ios::end);
break;
49 return streamoff (this->tellp ());
56 throw runtime_error (
"Cannot open binary file for writing");
64 throw runtime_error (
"Writing to binary file failed");
77 { bof.
writeInt (n, 4);
return (bof); }
80 { bof.
writeInt (n, 4);
return (bof); }