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

Function validateMemory

tools/ktx/validate.cpp:343–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341}
342
343int validateMemory(const char* data, std::size_t size, bool warningsAsErrors, bool GLTFBasisU, std::function<void(const ValidationReport&)> callback) {
344 try {
345 ValidationContextMemory ctx{warningsAsErrors, GLTFBasisU, std::move(callback), data, size};
346 return ctx.validate();
347 } catch (const FatalValidationError&) {
348 return +rc::INVALID_FILE;
349 }
350}
351
352int validateNamedFile(const std::string& filepath, bool warningsAsErrors, bool GLTFBasisU, std::function<void(const ValidationReport&)> callback) {
353 try {

Callers

nothing calls this directly

Calls 1

validateMethod · 0.45

Tested by

no test coverage detected