Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Storage/FileStore.h')
-rw-r--r--src/Storage/FileStore.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Storage/FileStore.h b/src/Storage/FileStore.h
index 8626974d..7f723bfc 100644
--- a/src/Storage/FileStore.h
+++ b/src/Storage/FileStore.h
@@ -32,7 +32,11 @@ public:
bool Open(const char* directory, const char* fileName, OpenMode mode);
bool Read(char& b); // Read 1 byte
+ bool Read(uint8_t& b)
+ { return Read((char&)b); } // Read 1 byte
int Read(char* buf, size_t nBytes); // Read a block of nBytes length
+ int Read(uint8_t* buf, size_t nBytes)
+ { return Read((char*)buf, nBytes); } // Read a block of nBytes length
int ReadLine(char* buf, size_t nBytes); // As Read but stop after '\n' or '\r\n' and null-terminate
FileWriteBuffer *GetWriteBuffer() const; // Return a pointer to the remaining space for writing
bool Write(char b); // Write 1 byte