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

Method writeFullAbsolute

source/core/StarIODevice.cpp:101–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101void IODevice::writeFullAbsolute(StreamOffset writePosition, char const* data, size_t len) {
102 while (len > 0) {
103 size_t r = writeAbsolute(writePosition, data, len);
104 if (r == 0)
105 throw IOException("Failed to write full buffer in writeFullAbsolute");
106 writePosition += r;
107 data += r;
108 len -= r;
109 }
110}
111
112ByteArray IODevice::readBytes(size_t size) {
113 if (!size)

Callers 1

commitWritesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected