mirror of
https://github.com/lighttransport/tinyusdz.git
synced 2026-01-18 01:11:17 +01:00
22 lines
402 B
C++
22 lines
402 B
C++
#include <cstdint>
|
|
|
|
#include "tinyusdz.hh"
|
|
|
|
static void parse_usdz(const uint8_t *data, size_t size)
|
|
{
|
|
tinyusdz::Stage stage;
|
|
std::string warn;
|
|
std::string err;
|
|
bool ret = tinyusdz::LoadUSDZFromMemory(data, size, "", &stage, &warn, &err);
|
|
(void)ret;
|
|
|
|
return;
|
|
}
|
|
|
|
extern "C"
|
|
int LLVMFuzzerTestOneInput(std::uint8_t const* data, std::size_t size)
|
|
{
|
|
parse_usdz(data, size);
|
|
return 0;
|
|
}
|