MCPcopy Create free account
hub / github.com/PaulStoffregen/SerialFlash / write

Method write

SerialFlash.h:94–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92 return rdlen;
93 }
94 uint32_t write(const void *buf, uint32_t wrlen) {
95 if (offset + wrlen > length) {
96 if (offset >= length) return 0;
97 wrlen = length - offset;
98 }
99 SerialFlash.write(address + offset, buf, wrlen);
100 offset += wrlen;
101 return wrlen;
102 }
103 void seek(uint32_t n) {
104 offset = n;
105 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected