MCPcopy Create free account
hub / github.com/Marzogh/SPIMemory / sizeofStr

Method sizeofStr

src/SPIFlash.cpp:270–276  ·  view source on GitHub ↗

Function for returning the size of the string (only to be used for the getAddress() function)

Source from the content-addressed store, hash-verified

268
269//Function for returning the size of the string (only to be used for the getAddress() function)
270uint16_t SPIFlash::sizeofStr(String &inputStr) {
271 uint16_t size;
272 size = (sizeof(char)*(inputStr.length()+1));
273 size+=sizeof(inputStr.length()+1);
274
275 return size;
276}
277
278// Reads a byte of data from a specific location in a page.
279// Takes two arguments -

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected