MCPcopy Create free account
hub / github.com/bblanchon/ArduinoJson / sizeForLength

Function sizeForLength

src/ArduinoJson/Memory/StringNode.hpp:31–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 static constexpr size_t maxLength = numeric_limits<length_type>::highest();
30
31 static constexpr size_t sizeForLength(size_t n) {
32 return n + 1 + offsetof(StringNode, data);
33 }
34
35 static StringNode* create(size_t length, Allocator* allocator) {
36 if (length > maxLength)

Callers 3

createFunction · 0.85
resizeFunction · 0.85
sizeofStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected