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

Function BeaconDataInt

beacon/beacon.cpp:52–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52extern "C" BEACON_IMPEX int BeaconDataInt(datap* parser) {
53 int32_t fourbyteint = 0;
54 if (parser->length < 4) {
55 return 0;
56 }
57 memcpy(&fourbyteint, parser->buffer, 4);
58 parser->buffer += 4;
59 parser->length -= 4;
60 return (int)swap_endianess(fourbyteint);
61}
62
63extern "C" BEACON_IMPEX short BeaconDataShort(datap* parser) {
64 int16_t retvalue = 0;

Callers

nothing calls this directly

Calls 1

swap_endianessFunction · 0.85

Tested by

no test coverage detected