16#include <dfx-utilities/FileSystem.hpp>
55 FileSink(fs::path
const & path,
bool truncate =
true);
63 void init(std::vector<uint8_t> initialHeader)
override;
70 void write(std::vector<uint8_t> data)
override;
FileSink(fs::path const &path, bool truncate=true)
Create a file sink targeting path.
void init(std::vector< uint8_t > initialHeader) override
Initialize the sink by writing the initial PCAPNG header.
void write(std::vector< uint8_t > data) override
Append serialized PCAPNG bytes to the output file.
Sink() noexcept=default
Construct a sink.
Definition Capture.hpp:27