#include <RawFrameReader.hpp>
|
static auto | read_one_frame (std::vector< char > &binary_data, std::ifstream &input_file) -> std::size_t |
| Read one frame of the bianry data to a vector.
|
|
Definition at line 11 of file RawFrameReader.hpp.
◆ RawFrame() [1/2]
srs::reader::RawFrame::RawFrame |
( |
| ) |
|
|
explicitdefault |
Default Constructor. No memory allocation.
◆ RawFrame() [2/2]
srs::reader::RawFrame::RawFrame |
( |
const std::string & | filename | ) |
|
|
explicit |
Constructor that opens a file with the given filename.
- Parameters
-
filename | The file name of the input binary |
Definition at line 8 of file RawFrameReader.cpp.
◆ get_binary_data()
auto srs::reader::RawFrame::get_binary_data |
( |
| ) |
const -> const auto& |
|
inline |
◆ read_one_frame() [1/2]
auto srs::reader::RawFrame::read_one_frame |
( |
| ) |
-> std::string_view |
◆ read_one_frame() [2/2]
auto srs::reader::RawFrame::read_one_frame |
( |
std::vector< char > & | binary_data, |
|
|
std::ifstream & | input_file ) -> std::size_t |
|
static |
Read one frame of the bianry data to a vector.
The input vector is first reserved with srs::common::LARGE_READ_MSG_BUFFER_SIZE elements and then resized with the size value, which is read from the binary file in the beginning. The vector is then set with size bytes of data from the file.
- Parameters
-
binary_data | The vector of chars to be filled. |
input_file | Input file handler. |
- Returns
- The amount of bytes read from the binary file. If the binary input file is not open, return 0.
Definition at line 19 of file RawFrameReader.cpp.
◆ input_buffer_
std::vector<char> srs::reader::RawFrame::input_buffer_ |
|
private |
◆ input_file_
std::ifstream srs::reader::RawFrame::input_file_ |
|
private |
◆ input_filename_
std::string srs::reader::RawFrame::input_filename_ |
|
private |
The documentation for this class was generated from the following files: