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

Method size

source/core/StarIODevice.cpp:62–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62StreamOffset IODevice::size() {
63 try {
64 StreamOffset storedPos = pos();
65 seek(0, IOSeek::End);
66 StreamOffset size = pos();
67 seek(storedPos);
68 return size;
69 } catch (IOException const& e) {
70 throw IOException("Cannot call size() on IODevice", e);
71 }
72}
73
74size_t IODevice::readAbsolute(StreamOffset readPosition, char* data, size_t len) {
75 StreamOffset storedPos = pos();

Callers 2

writeBytesMethod · 0.45
writeBytesAbsoluteMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected