| 7 | InputStream::InputStream(InputStream &&other) noexcept : std::istream(other._streamBuff.get()), _streamBuff(std::move(other._streamBuff)) {} |
| 8 | |
| 9 | std::streamsize InputStream::size() { |
| 10 | if (const auto *sizeable = dynamic_cast<SizeableStreambuf *>(_streamBuff.get())) |
| 11 | return sizeable->size(); |
| 12 | |
| 13 | const auto curPos = tellg(); |
| 14 | seekg(0, end); |
| 15 | const auto endPos = tellg(); |
| 16 | seekg(curPos, beg); |
| 17 | return endPos; |
| 18 | } |
| 19 | |
| 20 | } // namespace Abyss::FileSystem |
nothing calls this directly
no outgoing calls
no test coverage detected