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

Method allocExtension

src/ArduinoJson/Memory/ResourceManagerImpl.hpp:33–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31
32#if ARDUINOJSON_USE_EXTENSIONS
33inline Slot<VariantExtension> ResourceManager::allocExtension() {
34 auto p = variantPools_.allocSlot(allocator_);
35 if (!p) {
36 overflowed_ = true;
37 return {};
38 }
39 return {&p->extension, p.id()};
40}
41
42inline void ResourceManager::freeExtension(SlotId id) {
43 auto p = getExtension(id);

Callers 2

setFloatMethod · 0.80
setIntegerMethod · 0.80

Calls 2

idMethod · 0.80
allocSlotMethod · 0.45

Tested by

no test coverage detected