25 explicit RawFrame(
const std::string& filename);
40 auto read_one_frame(std::vector<char>& binary_data, std::ifstream& input_file)
41 -> std::expected<std::size_t, std::string>;
54 auto read_one_frame() -> std::expected<std::string_view, std::string>;
auto read_one_frame(std::vector< char > &binary_data, std::ifstream &input_file) -> std::expected< std::size_t, std::string >
Read one frame of the bianry data to a vector.
std::string input_filename_
Input binary file name.
std::vector< char > input_buffer_
internal binary data buffer
RawFrame()=default
Default Constructor. No memory allocation.
auto get_binary_data() const -> const auto &
Getter to the internal binary data used by the member function read_one_frame().
std::ifstream input_file_
Input binary file handler.