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

Method TryGetValue

Assets/XLua/Src/ObjectPool.cs:90–100  ·  view source on GitHub ↗
(int index, out object obj)

Source from the content-addressed store, hash-verified

88 }
89
90 public bool TryGetValue(int index, out object obj)
91 {
92 if (index >= 0 && index < count && list[index].next == ALLOCED)
93 {
94 obj = list[index].obj;
95 return true;
96 }
97
98 obj = null;
99 return false;
100 }
101
102 public object Get(int index)
103 {

Callers 15

getRelationshipMethod · 0.80
findGrowingMethod · 0.80
MemoryLeakReportMethod · 0.80
emitPushMethod · 0.80
EmitGetObjectMethod · 0.80
CheckMethod · 0.80
TryDelayWrapLoaderMethod · 0.80
getDelegateMethod · 0.80
CreateInterfaceBridgeMethod · 0.80
collectObjectMethod · 0.80
GetTypeOfMethod · 0.80
AssignableMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected