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

Method sizeofStr

src/SPIFram.cpp:185–191  ·  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

183
184//Function for returning the size of the string (only to be used for the getAddress() function)
185uint16_t SPIFram::sizeofStr(String &inputStr) {
186 uint16_t size;
187 size = (sizeof(char)*(inputStr.length()+1));
188 size+=sizeof(inputStr.length()+1);
189
190 return size;
191}
192
193// Reads a byte of data from a specific location in a page.
194// Takes two arguments -

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected