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

Method Replace

Assets/XLua/Src/ObjectPool.cs:125–135  ·  view source on GitHub ↗
(int index, object o)

Source from the content-addressed store, hash-verified

123 }
124
125 public object Replace(int index, object o)
126 {
127 if (index >= 0 && index < count)
128 {
129 object obj = list[index].obj;
130 list[index].obj = o;
131 return obj;
132 }
133
134 return null;
135 }
136
137 public int Check(int check_pos, int max_check, Func<object, bool> checker, Dictionary<object, int> reverse_map)
138 {

Callers 9

StartMethod · 0.45
UpdateMethod · 0.45
ReleaseCSObjMethod · 0.45
LoadFromResourceFunction · 0.45
EscapeStringMethod · 0.45
NonmalizeNameMethod · 0.45
GetConfigMethod · 0.45
OutputIntKeyMapperMethod · 0.45

Calls

no outgoing calls

Tested by 1

StartMethod · 0.36