main
Brett 2025-04-09 01:14:07 -04:00
parent 322a533fd9
commit 09d1a82268
2 changed files with 11 additions and 1 deletions

View File

@ -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)

View File

@ -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<char*>(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<const char*>(buffer), bytes);
}
/**
* Optional flush command which syncs the underlying objects
*/