| 22 | #include "seq_file.h" |
| 23 | |
| 24 | SeqFileWriter::SeqFileWriter(const char *file) { |
| 25 | _fs = new std::ofstream(file, std::ios::binary); |
| 26 | std::srand(std::time(0)); |
| 27 | for (int i = 0; i < SYNC_MARKER_SIZE; ++i) { |
| 28 | _sync_marker[i] = std::rand() % 255; |
| 29 | } |
| 30 | |
| 31 | _write_seq_header(); |
| 32 | |
| 33 | _bytes_to_prev_sync = 0; |
| 34 | } |
| 35 | |
| 36 | void SeqFileWriter::close() { |
| 37 | _fs->close(); |
nothing calls this directly
no outgoing calls
no test coverage detected