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

Method f_write

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

Source from the content-addressed store, hash-verified

103}
104
105s32_t FileSystem::f_write(struct spiffs_t* spiffs, u32_t addr, u32_t size, u8_t* src)
106{
107 auto fs = static_cast<FileSystem*>(spiffs->user_data);
108 assert(fs != nullptr);
109 if(fs->profiler != nullptr) {
110 fs->profiler->write(addr, src, size);
111 }
112 return fs->partition.write(addr, src, size) ? SPIFFS_OK : SPIFFS_ERR_INTERNAL;
113}
114
115s32_t FileSystem::f_erase(struct spiffs_t* spiffs, u32_t addr, u32_t size)
116{

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected