changes
parent
322a533fd9
commit
09d1a82268
|
@ -1,6 +1,6 @@
|
||||||
cmake_minimum_required(VERSION 3.20)
|
cmake_minimum_required(VERSION 3.20)
|
||||||
include(cmake/color.cmake)
|
include(cmake/color.cmake)
|
||||||
set(BLT_VERSION 5.2.39)
|
set(BLT_VERSION 5.2.40)
|
||||||
|
|
||||||
set(BLT_TARGET BLT)
|
set(BLT_TARGET BLT)
|
||||||
|
|
||||||
|
|
|
@ -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
|
* @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(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;
|
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
|
* Optional flush command which syncs the underlying objects
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue