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

Method readString

Sming/Core/Data/Packet.h:57–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 }
56
57 String readString(uint16_t length) const
58 {
59 String s;
60 if(s.setLength(length)) {
61 read(s.begin(), length);
62 } else {
63 pos += length;
64 }
65 return s;
66 }
67
68 void write8(uint8_t value)
69 {

Callers

nothing calls this directly

Calls 3

readFunction · 0.85
setLengthMethod · 0.80
beginMethod · 0.45

Tested by

no test coverage detected