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

Function BeaconFormatInt

beacon/beacon.cpp:172–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172extern "C" BEACON_IMPEX void BeaconFormatInt(formatp* format, int value) {
173 uint32_t indata = value;
174 uint32_t outdata = 0;
175 if (format->length < 4) {
176 return;
177 }
178 outdata = swap_endianess(indata);
179 memcpy(format->buffer, &outdata, 4);
180 format->length += 4;
181 format->buffer += 4;
182 return;
183}
184
185/* Main output functions */
186

Callers

nothing calls this directly

Calls 1

swap_endianessFunction · 0.85

Tested by

no test coverage detected