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

Method lseek

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

Source from the content-addressed store, hash-verified

383}
384
385file_offset_t FileSystem::lseek(FileHandle file, file_offset_t offset, SeekOrigin origin)
386{
387 int res = SPIFFS_lseek(handle(), file, offset, int(origin));
388 if(res < 0) {
389 int err = translateSpiffsError(res);
390 debug_ifserr(err, "lseek()");
391 return err;
392 }
393
394 // debug_i("Seek(%d, %d): %d", offset, origin, res);
395
396 return res;
397}
398
399SpiffsMetaBuffer* FileSystem::initMetaBuffer(FileHandle file)
400{

Callers 6

fileSeekFunction · 0.80
attachMethod · 0.80
openMethod · 0.80
readMemoryBlockMethod · 0.80
writeMethod · 0.80
seekFromMethod · 0.80

Calls 1

translateSpiffsErrorFunction · 0.85

Tested by

no test coverage detected