MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / Free

Method Free

LuaSTGPlus/ObjectPool.hpp:33–40  ·  view source on GitHub ↗

@brief ����һ������

Source from the content-addressed store, hash-verified

31 }
32 /// @brief ����һ������
33 void Free(size_t id)
34 {
35 if (id < AllocCount && m_DataUsed[id])
36 {
37 m_DataUsed[id] = false;
38 m_FreeIndex.push_back(id);
39 }
40 }
41 /// @brief ��ȡ���������
42 /// @return ��id������nullptr
43 T* Data(size_t id)

Callers 3

FreeInstanceMethod · 0.80
freeObjectMethod · 0.80
FreeInstanceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected