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

Method Send

renderdoc/android/jdwp_util.cpp:36–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34uint32_t Command::idalloc = 42;
35
36uint32_t Command::Send(StreamWriter &writer)
37{
38 id = idalloc++;
39 length = 11 + (uint32_t)data.size();
40
41 uint32_t tmp = EndianSwap(length);
42 writer.Write(tmp);
43 tmp = EndianSwap(id);
44 writer.Write(tmp);
45
46 // no need to endian swap these
47 byte flags = 0;
48 writer.Write(flags);
49 writer.Write(commandset);
50 writer.Write(command);
51
52 // already endian swapped
53 writer.Write(data.data(), data.size());
54
55 writer.Flush();
56
57 return id;
58}
59
60void Command::Recv(StreamReader &reader)
61{

Callers 2

SendReceiveMethod · 0.80
WaitForEventMethod · 0.80

Calls 5

EndianSwapFunction · 0.85
sizeMethod · 0.45
WriteMethod · 0.45
dataMethod · 0.45
FlushMethod · 0.45

Tested by

no test coverage detected