#include <server/replay_log.hpp>
|
| static constexpr std::size_t | kFrameBytes = 1u << 20 |
| | Uncompressed bytes per zstd frame before it is closed: big enough for full compression ratio, small enough that a crash loses little.
|
Definition at line 19 of file replay_log.hpp.
◆ ReplayWriter() [1/2]
| tmk::server::ReplayWriter::ReplayWriter |
( |
const std::string & | path, |
|
|
int | level = 6 ) |
|
explicit |
Compresses when path ends in ".zst". Throws std::runtime_error if the file cannot be created.
◆ ~ReplayWriter()
| tmk::server::ReplayWriter::~ReplayWriter |
( |
| ) |
|
◆ ReplayWriter() [2/2]
| tmk::server::ReplayWriter::ReplayWriter |
( |
const ReplayWriter & | | ) |
|
|
delete |
◆ bytes_in()
| std::uint64_t tmk::server::ReplayWriter::bytes_in |
( |
| ) |
const |
|
inline |
◆ close()
| void tmk::server::ReplayWriter::close |
( |
| ) |
|
ends the last frame and closes the file; called by the destructor
◆ compressed()
| bool tmk::server::ReplayWriter::compressed |
( |
| ) |
const |
|
inline |
◆ compressed_path()
| bool tmk::server::ReplayWriter::compressed_path |
( |
std::string_view | path | ) |
|
|
static |
◆ end_frame()
| void tmk::server::ReplayWriter::end_frame |
( |
| ) |
|
closes the current zstd frame (no-op when plain or empty)
◆ operator=()
◆ write_line()
| void tmk::server::ReplayWriter::write_line |
( |
std::string_view | line | ) |
|
◆ kFrameBytes
| std::size_t tmk::server::ReplayWriter::kFrameBytes = 1u << 20 |
|
staticconstexpr |
Uncompressed bytes per zstd frame before it is closed: big enough for full compression ratio, small enough that a crash loses little.
Definition at line 23 of file replay_log.hpp.
The documentation for this class was generated from the following file: