| 274 | } |
| 275 | |
| 276 | rdcarray<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 | |
| 297 | fieldID Connection::GetField(referenceTypeID type, const rdcstr &name, const rdcstr &signature) |
| 298 | { |
no test coverage detected