Class ByteStream

Inheritance Relationships

Derived Type

Class Documentation

class inexor::vulkan_renderer::io::ByteStream

Subclassed by inexor::vulkan_renderer::io::ByteStreamWriter

Public Functions

ByteStream() = default
explicit ByteStream(std::vector<std::uint8_t> buffer)
explicit ByteStream(const std::filesystem::path &path)

Read from file.

std::size_t size() const
const std::vector<std::uint8_t> &buffer() const

Protected Attributes

std::vector<std::uint8_t> m_buffer

Protected Static Functions

static std::vector<std::uint8_t> read_file(const std::filesystem::path &path)

Read from file.