MCPcopy Create free account
hub / github.com/comaps/comaps / PopDataPoint

Function PopDataPoint

libs/tracking/tracking_fuzz_tests/tracking_fuzz_tests.cpp:37–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37TrafficGPSEncoder::DataPoint PopDataPoint(std::vector<uint8_t> & data)
38{
39 auto const timestamp = PopType<uint64_t>(data);
40 auto const lat = PopType<double>(data);
41 auto const lon = PopType<double>(data);
42 auto const traffic = PopType<uint8_t>(data);
43 return TrafficGPSEncoder::DataPoint(timestamp, ms::LatLon(lat, lon), traffic);
44}
45} // namespace
46
47extern "C" int LLVMFuzzerTestOneInput(uint8_t const * data, size_t size)

Callers 1

LLVMFuzzerTestOneInputFunction · 0.85

Calls 2

DataPointClass · 0.85
LatLonClass · 0.50

Tested by

no test coverage detected