#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#ifndef TESTING_LIBFUZZER_FUZZERS_SKIA_PATH_COMMON_H_
#define TESTING_LIBFUZZER_FUZZERS_SKIA_PATH_COMMON_H_
#include "third_party/skia/include/core/SkPath.h"
template <typename T>
static bool read(const uint8_t** data, size_t* size, T* value) {
if (*size < sizeof(T))
return false;
*value = *reinterpret_cast<const T*>(*data);
*data += sizeof(T);
*size -= sizeof(T);
return true;
}
SkPath BuildPath(const uint8_t** data, size_t* size, int last_verb);
#endif