MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / EnsureStorage

Function EnsureStorage

include/cpp/VirtualArray.h:113–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111 }
112
113 void EnsureStorage(const Dynamic &inValue)
114 {
115 if (!inValue.mPtr)
116 {
117 EnsureNullStorage();
118 }
119 else switch(inValue->__GetType())
120 {
121 case vtBool: EnsureBoolStorage(); break;
122 case vtInt: EnsureIntStorage(); break;
123 case vtFloat: EnsureFloatStorage(); break;
124 case vtString: EnsureStringStorage(); break;
125 case vtInt64: EnsureInt64Storage(); break;
126 default: EnsureObjectStorage();
127 }
128 }
129
130
131 void EnsureStorage(const cpp::Variant &inValue)

Callers 11

__SetItemMethod · 0.85
VirtualArray.hFile · 0.85
pushFunction · 0.85
AddFunction · 0.85
containsFunction · 0.85
removeFunction · 0.85
indexOfFunction · 0.85
lastIndexOfFunction · 0.85
initFunction · 0.85
insertFunction · 0.85
unshiftFunction · 0.85

Calls 8

EnsureNullStorageFunction · 0.85
EnsureBoolStorageFunction · 0.85
EnsureIntStorageFunction · 0.85
EnsureFloatStorageFunction · 0.85
EnsureStringStorageFunction · 0.85
EnsureInt64StorageFunction · 0.85
EnsureObjectStorageFunction · 0.85
__GetTypeMethod · 0.45

Tested by

no test coverage detected