Agora
1.2.0
Agora project
|
Go to the documentation of this file.
5 #ifndef FILE_RECEIVER_H_
6 #define FILE_RECEIVER_H_
27 size_t Load(
unsigned char *destination,
size_t requested_bytes)
final;
38 #endif // FILE_RECEIVER_H_
Declaration file for the MacDataReceiver interface class.
Declaration file for the FileReceiver class.
The File Receiver class creates a binary file source for Agora.
Definition: file_receiver.h:19
std::ifstream data_stream_
Definition: file_receiver.h:31
static constexpr size_t kFileStreamLocalRxBufSize
Definition: file_receiver.h:22
size_t data_available_
Definition: file_receiver.h:34
Plot Rx waveform for u
Definition: inspect_single_frame.m:108
FileReceiver(std::string &file_name)
Definition: file_receiver.cc:15
The MacDataReceiver interface class.
Definition: mac_data_receiver.h:13
~FileReceiver() override
Definition: file_receiver.cc:22
size_t Load(unsigned char *destination, size_t requested_bytes) final
Definition: file_receiver.cc:28
std::string file_name_
Definition: file_receiver.h:30
#define AGORA_LOG_INFO(...)
Definition: logger.h:62
#define AGORA_LOG_FRAME(...)
Definition: logger.h:72
static constexpr size_t kFileStreamRxSize
Definition: file_receiver.h:21
std::array< uint8_t, FileReceiver::kFileStreamLocalRxBufSize > local_rx_buffer_
Definition: file_receiver.h:32
static constexpr size_t kMaxReadAttempts
Definition: file_receiver.cc:13
size_t data_start_offset_
Definition: file_receiver.h:35