bsa::read_source class final

An abstraction over the specific source that will be read from.

Constructors, destructors, conversion operators

read_source(std::filesystem::path a_path)
read_source(std::span<const std::byte> a_src) noexcept
read_source(std::span<const std::byte> a_src, copy_type a_copy) noexcept

Function documentation

bsa::read_source::read_source(std::filesystem::path a_path)

Parameters
a_path The path to read from on the native filesystem.
Exceptions
std::system_error Thrown when filesystem errors are encountered.

bsa::read_source::read_source(std::span<const std::byte> a_src) noexcept

Parameters
a_src The source to read from.

bsa::read_source::read_source(std::span<const std::byte> a_src, copy_type a_copy) noexcept

Parameters
a_src The source to read from.
a_copy The method to use when copying data from a_src.