@@ -14,19 +14,18 @@ class GSMFileUtils {
14
14
size_t listFiles (String list[]) const ;
15
15
uint32_t listFile (const String filename) const ;
16
16
17
- void downloadFile (const String filename, const char buf[], const uint32_t size, const bool append);
18
- void downloadFile (const String filename, const char buf[], const uint32_t size) { downloadFile (filename, buf, size, false ); };
19
- void downloadFile (const String filename, const String& buf) { downloadFile (filename, buf.c_str (), buf.length (), false ); }
17
+ uint32_t downloadFile (const String filename, const char buf[], const uint32_t size, const bool append);
18
+ uint32_t downloadFile (const String filename, const char buf[], const uint32_t size) { return downloadFile (filename, buf, size, false ); };
19
+ uint32_t downloadFile (const String filename, const String& buf) { return downloadFile (filename, buf.c_str (), buf.length (), false ); }
20
20
21
- void appendFile (const String filename, const String& buf) { downloadFile (filename, buf.c_str (), buf.length (), true ); }
22
- void appendFile (const String filename, const char buf[], const uint32_t size) { downloadFile (filename, buf, size, true ); }
21
+ uint32_t appendFile (const String filename, const String& buf) { return downloadFile (filename, buf.c_str (), buf.length (), true ); }
22
+ uint32_t appendFile (const String filename, const char buf[], const uint32_t size) { return downloadFile (filename, buf, size, true ); }
23
23
24
24
bool deleteFile (const String filename);
25
25
int deleteFiles ();
26
26
27
27
uint32_t readFile (const String filename, String* content);
28
28
uint32_t readFile (const String filename, uint8_t * content);
29
- // size_t readBlock(const String filename, String* content, const bool binary = false);
30
29
uint32_t readBlock (const String filename, const uint32_t offset, const uint32_t len, uint8_t * content);
31
30
32
31
uint32_t freeSpace ();
0 commit comments