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

Method GetLocalValue

renderdoc/android/jdwp_connection.cpp:536–553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

534}
535
536value Connection::GetLocalValue(threadID thread, frameID frame, int32_t slot, Tag tag)
537{
538 Command cmd(CommandSet::StackFrame, 1);
539 // request one value
540 cmd.GetData().Write(thread).Write(frame).Write<int32_t>(1).Write(slot).Write((byte)tag);
541
542 SendReceive(cmd);
543
544 int32_t numVals = 0;
545 value ret;
546
547 cmd.GetData().Read(numVals).Read(ret).Done();
548
549 if(numVals != 1)
550 RDCWARN("Unexpected number of values found in GetValue: %d", numVals);
551
552 return ret;
553}
554
555void Connection::SetLocalValue(threadID thread, frameID frame, int32_t slot, value val)
556{

Callers 1

Calls 4

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

Tested by

no test coverage detected