5#include <vitrio/byte.hpp>
6#include <vitrio/export.hpp>
7#include <vitrio/span.hpp>
103 std::
string m_extension;
104 std::vector<
byte> m_leading_bytes;
Inmutable brief representation of a file.
Definition image_file_probe.hpp:28
image_file_probe(std::string path)
Construct a probe by reading the leading bytes of a file.
span< const byte > get_leading_bytes() const noexcept
Get the leading bytes of the probed file.
const std::string & get_extension() const noexcept
Get the extension of the probed file.
bool exists() const noexcept
Check whether the probed file exists and could be read.
static constexpr std::size_t max_leading_bytes
Most bytes a probe reads off the front of a file.
Definition image_file_probe.hpp:34
const std::string & get_path() const noexcept
Get the path of the probed file.
A view of a contiguous sequence of elements.
Definition span.hpp:29