MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / writeFull

Method writeFull

source/core/StarIODevice.cpp:31–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31void IODevice::writeFull(char const* data, size_t len) {
32 size_t r = write(data, len);
33 if (r < len) {
34 if (atEnd())
35 throw EofException("Failed to write full buffer in writeFull, eof reached.");
36 else
37 throw IOException("Failed to write full buffer in writeFull");
38 }
39 data += r;
40 len -= r;
41}
42
43void IODevice::open(IOMode mode) {
44 if (mode != m_mode)

Callers 7

renderMethod · 0.80
writeDataMethod · 0.80
copyMethod · 0.80
writeFileMethod · 0.80
writePngMethod · 0.80
UncompressedAudioImplMethod · 0.80

Calls 1

writeFunction · 0.85

Tested by

no test coverage detected