mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-19 03:33:56 +00:00
22 lines
431 B
C++
22 lines
431 B
C++
#pragma once
|
|
#include <queue>
|
|
#include <string>
|
|
|
|
namespace gdb_stub
|
|
{
|
|
class stream_processor
|
|
{
|
|
public:
|
|
bool has_packet() const;
|
|
std::string get_next_packet();
|
|
void push_stream_data(const std::string& data);
|
|
|
|
private:
|
|
std::string stream_{};
|
|
std::queue<std::string> packets_{};
|
|
|
|
void process_data_stream();
|
|
void enqueue_packet(std::string packet);
|
|
};
|
|
}
|