MCPcopy Create free account
hub / github.com/SmingHub/Sming / ftruncate

Method ftruncate

Sming/Libraries/Spiffs/src/FileSystem.cpp:344–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342}
343
344int FileSystem::ftruncate(FileHandle file, file_size_t new_size)
345{
346 int res = SPIFFS_ftruncate(handle(), file, new_size);
347 return translateSpiffsError(res);
348}
349
350int FileSystem::flush(FileHandle file)
351{

Callers 2

fileTruncateFunction · 0.80
truncateMethod · 0.80

Calls 1

translateSpiffsErrorFunction · 0.85

Tested by

no test coverage detected