MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / validateStdioStream

Function validateStdioStream

tools/ktx/validate.cpp:361–368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359}
360
361int validateStdioStream(FILE* file, const std::string& filepath, bool warningsAsErrors, bool GLTFBasisU, std::function<void(const ValidationReport&)> callback) {
362 try {
363 ValidationContextStdioStream ctx{warningsAsErrors, GLTFBasisU, std::move(callback), file, filepath};
364 return ctx.validate();
365 } catch (const FatalValidationError&) {
366 return +rc::INVALID_FILE;
367 }
368}
369
370// -------------------------------------------------------------------------------------------------
371

Callers

nothing calls this directly

Calls 1

validateMethod · 0.45

Tested by

no test coverage detected