diff --git a/CMakeLists.txt b/CMakeLists.txt index eab0174..5d15920 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.20) include(cmake/color.cmake) -set(BLT_VERSION 5.2.39) +set(BLT_VERSION 5.2.40) set(BLT_TARGET BLT) diff --git a/include/blt/fs/fwddecl.h b/include/blt/fs/fwddecl.h index 06359be..bed0f77 100644 --- a/include/blt/fs/fwddecl.h +++ b/include/blt/fs/fwddecl.h @@ -43,6 +43,11 @@ namespace blt::fs * @return number of bytes read, or negative value if error. Errors are not required and can just return 0 */ virtual i64 read(char* buffer, size_t bytes) = 0; + + virtual i64 read(void* buffer, const size_t bytes) + { + return this->read(static_cast(buffer), bytes); + } }; /** @@ -66,6 +71,11 @@ namespace blt::fs */ virtual i64 write(const char* buffer, size_t bytes) = 0; + i64 write(const void* buffer, const size_t bytes) + { + return this->write(static_cast(buffer), bytes); + } + /** * Optional flush command which syncs the underlying objects */