added reading start

This commit is contained in:
zanostro 2025-11-17 13:07:24 +01:00
parent 5d2a0f867c
commit d438feb9ee
7 changed files with 128 additions and 4 deletions

View file

@ -1,4 +1,6 @@
#pragma once
#ifndef STRING_READER_H
#define STRING_READER_H
#include "reader.h"
#include <string>
#include <sstream>
@ -11,7 +13,10 @@ public:
int readByte() override;
bool readBytes(uint8_t* buf, size_t len) override;
std::string readString(size_t len) override;
std::string readLine() override;
private:
std::istringstream in;
};
#endif // STRING_READER_H