Hello. I want to make SQLite VFS which works using SDL RWops. However, I run into some problems which could be solved by extending RWops with:
-
truncate
— behaves like usual posixtruncate
, forcing file to be sepcified lenght. Removes extra bytes if there are any or append file with zeroes. -
isMutable
— returnfalse
if file is in constant memory/APK/CDrom or other drive which can’t be modifed even as priviliged user,true
otherwise.
For exsisting user implementations, truncate
may return error like “Unsupported” and isMutable
always return true
.
What do you think? Thanks.
UPD: another suggestion is
-
isFixed
— can we write past the end (andturncate
)