| 170 | } |
| 171 | |
| 172 | extern "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 |
nothing calls this directly
no test coverage detected