MCPcopy Create free account
hub / github.com/Tencent/xLua / Remove

Method Remove

Assets/XLua/Src/ObjectPool.cs:111–123  ·  view source on GitHub ↗
(int index)

Source from the content-addressed store, hash-verified

109 }
110
111 public object Remove(int index)
112 {
113 if (index >= 0 && index < count && list[index].next == ALLOCED)
114 {
115 object o = list[index].obj;
116 list[index].obj = null;
117 list[index].next = freelist;
118 freelist = index;
119 return o;
120 }
121
122 return null;
123 }
124
125 public object Replace(int index, object o)
126 {

Callers 7

CheckMethod · 0.45
TryDelayWrapLoaderMethod · 0.45
ReleaseLuaBaseMethod · 0.45
collectObjectMethod · 0.45
ReleaseCSObjMethod · 0.45
LuaEnv.csFile · 0.45
DelegateRemoveFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected