MCPcopy Create free account
hub / github.com/baldurk/renderdoc / GetLocalVariables

Method GetLocalVariables

renderdoc/android/jdwp_connection.cpp:276–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274}
275
276rdcarray<VariableSlot> Connection::GetLocalVariables(referenceTypeID type, methodID method)
277{
278 Command cmd(CommandSet::Method, 2);
279 cmd.GetData().Write(type).Write(method);
280
281 if(!SendReceive(cmd))
282 return {};
283
284 int32_t argumentCount = 0;
285 rdcarray<VariableSlot> slots;
286
287 CommandData data = cmd.GetData();
288 data.Read(argumentCount); // unused for now
289 ReadVector<VariableSlot>(data, slots, [](CommandData &d, VariableSlot &s) {
290 d.Read(s.codeIndex).Read(s.name).Read(s.signature).Read(s.length).Read(s.slot);
291 });
292 data.Done();
293
294 return slots;
295}
296
297fieldID Connection::GetField(referenceTypeID type, const rdcstr &name, const rdcstr &signature)
298{

Callers 1

InjectLibrariesFunction · 0.80

Calls 4

DoneMethod · 0.80
WriteMethod · 0.45
GetDataMethod · 0.45
ReadMethod · 0.45

Tested by

no test coverage detected