Slick Sim 0.10.1
Exchange simulator that shadows real venues for risk-free strategy testing
Loading...
Searching...
No Matches
slick::sim::md_feed::detail Namespace Reference

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).

Function Documentation

◆ errno_text()

std::string slick::sim::md_feed::detail::errno_text ( int error)
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().

◆ has_suffix()

bool slick::sim::md_feed::detail::has_suffix ( std::string_view path,
std::string_view suffix )
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().

◆ open_shared()

std::FILE * slick::sim::md_feed::detail::open_shared ( const std::string & path)
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().