| 50 | } |
| 51 | |
| 52 | extern "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 | |
| 63 | extern "C" BEACON_IMPEX short BeaconDataShort(datap* parser) { |
| 64 | int16_t retvalue = 0; |
nothing calls this directly
no test coverage detected