18 Commits

Author SHA1 Message Date
Godzil
73d9d4b861 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.
v0.1.0
2022-05-30 15:40:29 +01:00
Godzil
6b1d2623f3 Fix a missing semicolon. 2022-05-30 15:38:50 +01:00
Godzil
bbef89bcd9 Fix small building issue on linux/unix system when building with mmap. 2022-05-27 12:18:18 +01:00
Godzil
8a604309bb Add missing boundary check when seeking in a file. 2022-05-27 12:02:15 +01:00
Godzil
4457733f3d Block read was off by one. 2022-05-27 11:22:12 +01:00
Godzil
73a730bebb SEEK END was off by one. 2022-05-27 11:21:56 +01:00
Godzil
202cf7cab8 Let's properly report an invalid filename instead of reporting file not found. 2022-05-27 11:21:31 +01:00
Godzil
fb05c096a8 Setting the memoryOffset for the memory backend could be useful... 2022-05-27 11:21:02 +01:00
Godzil
54e4c91d75 Let's be a bit more consistant with error reporting and having "NO ERROR" reported when a function do not fail. 2022-05-27 11:20:39 +01:00
Godzil
76d520a5a2 Add some file operation tests.
We are not testing everything yet.
2022-05-27 11:19:28 +01:00
Godzil
ba3a08cd59 Fix some pedantism from C++ 2022-05-27 11:18:53 +01:00
Godzil
18b13da2f9 Add first batch of tests
and fix some issues.
2022-05-27 10:38:13 +01:00
Godzil
ff5cfce715 Add google test for testing the library. 2022-05-26 16:40:58 +01:00
Godzil
73db9f9989 A bit of cosmetics 2022-05-26 16:15:56 +01:00
Godzil
52c1735ea1 Made the memory backend, should somewhat work 2022-05-26 15:18:16 +01:00
Godzil
8fd7ab33fc Now we can generate a fairly basic FS.
Added some test material
2022-05-26 12:02:47 +01:00
Godzil
d9b7996c8e Add cJSON dependency 2022-05-25 14:14:32 +01:00
Godzil
0c5ef936c2 Initial commit v0.0.1 2022-05-25 14:06:47 +01:00