| 60 | } |
| 61 | |
| 62 | StreamOffset 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 | |
| 74 | size_t IODevice::readAbsolute(StreamOffset readPosition, char* data, size_t len) { |
| 75 | StreamOffset storedPos = pos(); |
no outgoing calls
no test coverage detected