20 Commits

Author SHA1 Message Date
Godzil
17ccf91286 Make the file platform to work 2023-02-10 17:59:41 +00:00
Godzil
5e620711d0 Fix build when integrated into another project 2023-02-10 17:59:40 +00:00
Godzil
63a1cb6c11 Add a primitive write function and function to get the version.
MiniFFS is not really meant to write in the files, but in some cases it could be needed so that was added for that reason. If the changes are applied or not to the actual file is implementation dependent. So be careful.
2023-02-10 17:59:39 +00:00
Godzil
2db8135e85 Fix a missing semicolon. 2023-02-10 17:59:38 +00:00
Godzil
44ebc2c848 Fix small building issue on linux/unix system when building with mmap. 2023-02-10 17:59:37 +00:00
Godzil
334ea87d25 Add missing boundary check when seeking in a file. 2023-02-10 17:59:36 +00:00
Godzil
bd96f10492 Block read was off by one. 2023-02-10 17:59:35 +00:00
Godzil
b6f0880a98 SEEK END was off by one. 2023-02-10 17:59:34 +00:00
Godzil
49f2cba7f4 Let's properly report an invalid filename instead of reporting file not found. 2023-02-10 17:59:33 +00:00
Godzil
804fc2b49b Setting the memoryOffset for the memory backend could be useful... 2023-02-10 17:59:32 +00:00
Godzil
9189728205 Let's be a bit more consistant with error reporting and having "NO ERROR" reported when a function do not fail. 2023-02-10 17:59:31 +00:00
Godzil
95c214043e Add some file operation tests.
We are not testing everything yet.
2023-02-10 17:59:30 +00:00
Godzil
aa85a2c70b Fix some pedantism from C++ 2023-02-10 17:59:29 +00:00
Godzil
57f8283df7 Add first batch of tests
and fix some issues.
2023-02-10 17:59:28 +00:00
Godzil
07edd92023 Add google test for testing the library. 2023-02-10 17:59:27 +00:00
Godzil
d09c8b3864 A bit of cosmetics 2023-02-10 17:59:19 +00:00
Godzil
86acbaa30f Made the memory backend, should somewhat work 2023-02-10 17:59:17 +00:00
Godzil
b31439bcb6 Now we can generate a fairly basic FS.
Added some test material
2023-02-10 17:59:15 +00:00
Godzil
f3ed393963 Add cJSON dependency 2023-02-10 17:59:12 +00:00
Godzil
675808e62f Initial commit 2023-02-10 17:59:04 +00:00