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

Function __int_hash_set_float

src/hx/Hash.cpp:117–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115
116
117void __int_hash_set_float(HX_MAP_THIS_ARG,int inKey,Float inValue)
118{
119 IntHashBase *hash = static_cast<IntHashBase *>(ioHash.GetPtr());
120 if (!hash)
121 {
122 hash = new IntHashFloat();
123 ioHash = hash;
124 HX_OBJ_WB_GET(owner,hash);
125 }
126 else if (hash->store==hashString || hash->store==hashInt64)
127 {
128 hash = hash->convertStore(hashObject);
129 ioHash = hash;
130 HX_OBJ_WB_GET(owner,hash);
131 }
132 else if (hash->store==hashInt)
133 {
134 hash = hash->convertStore(hashFloat);
135 ioHash = hash;
136 HX_OBJ_WB_GET(owner,hash);
137 }
138
139 hash->set(inKey,inValue);
140}
141
142
143

Callers

nothing calls this directly

Calls 3

GetPtrMethod · 0.80
convertStoreMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected