| 206 | } |
| 207 | |
| 208 | referenceTypeID Connection::GetType(const rdcstr &signature) |
| 209 | { |
| 210 | Command cmd(CommandSet::VirtualMachine, 2); |
| 211 | cmd.GetData().Write(signature); |
| 212 | |
| 213 | if(!SendReceive(cmd)) |
| 214 | return {}; |
| 215 | |
| 216 | int32_t numTypes = 0; |
| 217 | byte typetag; |
| 218 | referenceTypeID ret; |
| 219 | int32_t status; // unused |
| 220 | |
| 221 | cmd.GetData().Read(numTypes).Read(typetag).Read(ret).Read(status).Done(); |
| 222 | |
| 223 | if(numTypes == 0) |
| 224 | return {}; |
| 225 | else if(numTypes > 1) |
| 226 | RDCWARN("Multiple types found for '%s'", signature.c_str()); |
| 227 | |
| 228 | return ret; |
| 229 | } |
| 230 | |
| 231 | referenceTypeID Connection::GetType(objectID obj) |
| 232 | { |
no test coverage detected