MCPcopy Create free account
hub / github.com/CesiumGS/cesium-native / write

Method write

CesiumNativeTests/src/OwnedTempFile.cpp:49–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void OwnedTempFile::write(
50 const std::span<const std::byte>& buffer,
51 std::ios::openmode flags) {
52 std::fstream stream(_filePath.string(), flags);
53 REQUIRE(stream.good());
54 stream.write(
55 reinterpret_cast<const char*>(buffer.data()),
56 static_cast<std::streamsize>(buffer.size()));
57}

Callers 1

writeTgaImplFunction · 0.45

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected