MCPcopy Create free account
hub / github.com/NetSPI/BOF-PE / WriteInt

Function WriteInt

common/standalone.cpp:19–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17typedef std::vector<char> ByteArray;
18
19static void WriteInt(std::stringstream& ss, int value) {
20 auto reversed = Reverse32(value);
21 ss.write((char*)&reversed, sizeof(reversed));
22}
23
24static void WriteShort(std::stringstream& ss, short value) {
25 auto reversed = Reverse16(value);

Callers 3

WriteBytesFunction · 0.85
WriteStringFunction · 0.85
GetPackedArgumentsFunction · 0.85

Calls 1

Reverse32Function · 0.85

Tested by

no test coverage detected