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

Method bytesToSlots

src/ArduinoJson/Memory/MemoryPool.hpp:96–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94 }
95
96 static SlotCount bytesToSlots(size_t n) {
97 return static_cast<SlotCount>(n / sizeof(T));
98 }
99
100 static size_t slotsToBytes(SlotCount n) {
101 return n * sizeof(T);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected