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

Function __int_hash_set_string

src/hx/Hash.cpp:144–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142
143
144void __int_hash_set_string(HX_MAP_THIS_ARG,int inKey, ::String inValue)
145{
146 IntHashBase *hash = static_cast<IntHashBase *>(ioHash.GetPtr());
147 if (!hash)
148 {
149 hash = new IntHashString();
150 ioHash = hash;
151 HX_OBJ_WB_GET(owner,hash);
152 }
153 else if (hash->store==hashInt || hash->store==hashFloat || hash->store==hashInt64)
154 {
155 hash = hash->convertStore(hashObject);
156 ioHash = hash;
157 HX_OBJ_WB_GET(owner,hash);
158 }
159
160 hash->set(inKey,inValue);
161}
162
163void __int_hash_set_int64(HX_MAP_THIS_ARG, int inKey, cpp::Int64 inValue)
164{

Callers

nothing calls this directly

Calls 3

GetPtrMethod · 0.80
convertStoreMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected