diff --git a/deps/ox/src/ox/fs/filestore/filestoretemplate.hpp b/deps/ox/src/ox/fs/filestore/filestoretemplate.hpp index 4d7ccdb4..ac1546e8 100644 --- a/deps/ox/src/ox/fs/filestore/filestoretemplate.hpp +++ b/deps/ox/src/ox/fs/filestore/filestoretemplate.hpp @@ -122,7 +122,7 @@ class FileStoreTemplate { [[nodiscard]] InodeId_t available(); - [[nodiscard]] uint8_t *buff(); + [[nodiscard]] char *buff(); [[nodiscard]] Error walk(Error(*cb)(uint8_t, uint64_t, uint64_t)); @@ -464,8 +464,8 @@ typename FileStoreTemplate::InodeId_t FileStoreTemplate::availab } template -uint8_t *FileStoreTemplate::buff() { - return reinterpret_cast(m_buffer); +char *FileStoreTemplate::buff() { + return reinterpret_cast(m_buffer); } template diff --git a/deps/ox/src/ox/fs/filesystem/filesystem.hpp b/deps/ox/src/ox/fs/filesystem/filesystem.hpp index a14957d8..27c612bb 100644 --- a/deps/ox/src/ox/fs/filesystem/filesystem.hpp +++ b/deps/ox/src/ox/fs/filesystem/filesystem.hpp @@ -70,7 +70,7 @@ class FileSystem { [[nodiscard]] virtual uint64_t size() const = 0; - [[nodiscard]] virtual uint8_t *buff() = 0; + [[nodiscard]] virtual char *buff() = 0; [[nodiscard]] virtual ox::Error walk(ox::Error(*cb)(uint8_t, uint64_t, uint64_t)) = 0; @@ -94,12 +94,12 @@ class FileSystemTemplate: public FileSystem { }; FileStore m_fs; - void(*m_freeBuffer)(uint8_t*) = nullptr; + void(*m_freeBuffer)(char*) = nullptr; public: FileSystemTemplate() = default; - FileSystemTemplate(void *buffer, uint64_t bufferSize, void(*freeBuffer)(uint8_t*) = [] (uint8_t *buff) { delete buff; }); + FileSystemTemplate(void *buffer, uint64_t bufferSize, void(*freeBuffer)(char*) = [] (char *buff) { delete buff; }); FileSystemTemplate(FileStore fs); @@ -147,7 +147,7 @@ class FileSystemTemplate: public FileSystem { uint64_t size() const override; - uint8_t *buff() override; + char *buff() override; [[nodiscard]] ox::Error walk(ox::Error(*cb)(uint8_t, uint64_t, uint64_t)) override; @@ -171,7 +171,7 @@ FileSystemTemplate::FileSystemTemplate(FileStore fs) { } template -FileSystemTemplate::FileSystemTemplate(void *buffer, uint64_t bufferSize, void(*freeBuffer)(uint8_t*)): +FileSystemTemplate::FileSystemTemplate(void *buffer, uint64_t bufferSize, void(*freeBuffer)(char*)): m_fs(buffer, bufferSize), m_freeBuffer(freeBuffer) { } @@ -363,7 +363,7 @@ uint64_t FileSystemTemplate::size() const { } template -uint8_t *FileSystemTemplate::buff() { +char *FileSystemTemplate::buff() { return m_fs.buff(); } diff --git a/deps/ox/src/ox/fs/filesystem/passthroughfs.cpp b/deps/ox/src/ox/fs/filesystem/passthroughfs.cpp index f99f76da..30c18ee3 100644 --- a/deps/ox/src/ox/fs/filesystem/passthroughfs.cpp +++ b/deps/ox/src/ox/fs/filesystem/passthroughfs.cpp @@ -140,7 +140,7 @@ uint64_t PassThroughFS::size() const { return s.capacity; } -uint8_t *PassThroughFS::buff() { +char *PassThroughFS::buff() { return nullptr; } diff --git a/deps/ox/src/ox/fs/filesystem/passthroughfs.hpp b/deps/ox/src/ox/fs/filesystem/passthroughfs.hpp index 1c00313b..c9366f10 100644 --- a/deps/ox/src/ox/fs/filesystem/passthroughfs.hpp +++ b/deps/ox/src/ox/fs/filesystem/passthroughfs.hpp @@ -72,7 +72,7 @@ class PassThroughFS: public FileSystem { uint64_t size() const override; - uint8_t *buff() override; + char *buff() override; ox::Error walk(Error(*cb)(uint8_t, uint64_t, uint64_t)) override;