unify on 32-bit signed lengths
This commit is contained in:
@@ -36,7 +36,7 @@ bool filesystem_init(void);
|
||||
/** @brief Gets the space available on the filesystem.
|
||||
* @return the free space in bytes
|
||||
*/
|
||||
int filesystem_get_free_space(void);
|
||||
int32_t filesystem_get_free_space(void);
|
||||
|
||||
/** @brief Checks for the existence of a file on the filesystem.
|
||||
* @param filename the file you wish to check
|
||||
@@ -50,6 +50,12 @@ bool filesystem_file_exists(char *filename);
|
||||
*/
|
||||
bool filesystem_rm(char *filename);
|
||||
|
||||
/** @brief Gets the size of a file on the filesystem.
|
||||
* @param filename the file whose size you wish to determine
|
||||
* @return the file's size in bytes, or -1 if the file does not exist.
|
||||
*/
|
||||
int32_t filesystem_get_file_size(char *filename);
|
||||
|
||||
/** @brief Reads a file from the filesystem into a buffer
|
||||
* @param filename the file you wish to read
|
||||
* @param buf A buffer of at least length bytes; the file will be read into this buffer
|
||||
|
||||
Reference in New Issue
Block a user