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

Method GetType

renderdoc/android/jdwp_connection.cpp:208–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208referenceTypeID 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
231referenceTypeID Connection::GetType(objectID obj)
232{

Callers 2

InjectLibrariesFunction · 0.45

Calls 5

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

Tested by

no test coverage detected