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

Method readFull

source/core/StarIODevice.cpp:19–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19void IODevice::readFull(char* data, size_t len) {
20 size_t r = read(data, len);
21 if (r < len) {
22 if (atEnd())
23 throw EofException("Failed to read full buffer in readFull, eof reached.");
24 else
25 throw IOException("Failed to read full buffer in readFull");
26 }
27 data += r;
28 len -= r;
29}
30
31void IODevice::writeFull(char const* data, size_t len) {
32 size_t r = write(data, len);

Callers 7

readDataMethod · 0.80
readPngDataFunction · 0.80
readPngMethod · 0.80
readPngMetadataMethod · 0.80
readLETypeFunction · 0.80
isUncompressedFunction · 0.80
parseWavFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected