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

Method write

tools/ktx/command.cpp:169–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169void OutputStream::write(const char* data, std::size_t size, Reporter& report) {
170 const auto written = std::fwrite(data, 1, size, file);
171 if (written != size)
172 report.fatal(rc::IO_FAILURE, "Failed to write output file \"{}\": {}.", fmtOutFile(filepath), errnoMessage());
173}
174
175void OutputStream::writeKTX2(ktxTexture* texture, Reporter& report) {
176 const auto ret = ktxTexture_WriteToStdioStream(texture, file);

Callers 9

streamoutFunction · 0.45
addIssueMethod · 0.45
executeExtractMethod · 0.45
saveRawFileMethod · 0.45
savePNGMethod · 0.45
saveEXRMethod · 0.45
writer2.cFile · 0.45

Calls 3

fmtOutFileFunction · 0.85
errnoMessageFunction · 0.70
fatalMethod · 0.45

Tested by

no test coverage detected