MCPcopy Create free account
hub / github.com/beefytech/Beef / Initialize

Method Initialize

BeefySysLib/util/HashSet.h:333–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331 }
332
333 void Initialize(intptr capacity)
334 {
335 int_cosize size = GetPrimeish((int_cosize)capacity);
336 AllocData(size, mEntries, mBuckets);
337
338 mAllocSize = size;
339 for (int_cosize i = 0; i < (int_cosize)mAllocSize; i++) mBuckets[i] = -1;
340 mFreeList = -1;
341 }
342
343 bool Insert(const TKey& key, bool add, TKey** keyPtr)
344 {

Callers 1

LoadSceneFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected