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

Method Recv

renderdoc/android/jdwp_util.cpp:60–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void Command::Recv(StreamReader &reader)
61{
62 reader.Read(length);
63 length = EndianSwap(length);
64 reader.Read(id);
65 id = EndianSwap(id);
66
67 byte flags = 0;
68 reader.Read(flags);
69 if(flags == 0x80)
70 {
71 commandset = CommandSet::Unknown;
72 command = 0;
73 uint16_t errInt = 0;
74 reader.Read(errInt);
75 error = (Error)EndianSwap(errInt);
76 }
77 else
78 {
79 reader.Read(commandset);
80 reader.Read(command);
81 error = Error::None;
82 }
83
84 data.clear();
85 if(length >= 11)
86 {
87 data.resize(length - 11);
88 reader.Read(&data[0], data.size());
89 }
90}
91
92CommandData Command::GetData()
93{

Callers 2

SendReceiveMethod · 0.80
WaitForEventMethod · 0.80

Calls 5

EndianSwapFunction · 0.85
ReadMethod · 0.45
clearMethod · 0.45
resizeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected