| 534 | } |
| 535 | |
| 536 | value 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 | |
| 555 | void Connection::SetLocalValue(threadID thread, frameID frame, int32_t slot, value val) |
| 556 | { |
no test coverage detected