|
Slick Sim 0.10.1
Exchange simulator that shadows real venues for risk-free strategy testing
|
Classes | |
| class | CaptureStream |
| A capture file's bytes: as stored, or decompressed on the fly from .zst (zstd) or .gz (gzip, members back to back included). More... | |
Functions | |
| bool | has_suffix (std::string_view path, std::string_view suffix) noexcept |
| path ends in the lowercase suffix, in any case: a.PCAP.ZST is zstd too. | |
| std::string | errno_text (int error) |
| errno's text, without strerror's thread-safety warning on MSVC. | |
| std::FILE * | open_shared (const std::string &path) |
| Opens for reading, shared: two readers may hold one capture (fopen_s would lock it). | |
|
inline |
errno's text, without strerror's thread-safety warning on MSVC.
Definition at line 73 of file pcap_reader.hpp.
Referenced by slick::sim::md_feed::detail::CaptureStream::CaptureStream().
|
inlinenoexcept |
path ends in the lowercase suffix, in any case: a.PCAP.ZST is zstd too.
Definition at line 58 of file pcap_reader.hpp.
Referenced by slick::sim::md_feed::detail::CaptureStream::CaptureStream().
|
inline |
Opens for reading, shared: two readers may hold one capture (fopen_s would lock it).
Definition at line 76 of file pcap_reader.hpp.
Referenced by slick::sim::md_feed::detail::CaptureStream::CaptureStream().