Revert "test NSFile::CFileBinary as Stream"

This reverts commit 54261fd1a1.
This commit is contained in:
Ivan Morozov
2022-08-01 19:41:46 +03:00
parent 54261fd1a1
commit 8f74b9362a
17 changed files with 179 additions and 184 deletions

15
Common/cppcf/stream.cpp Normal file
View File

@ -0,0 +1,15 @@
#include "stream.h"
std::streamsize CFCPP::Length(const CFCPP::Stream& st)
{
if (st.get() == nullptr)
return 0;
auto curPos = st->tellg();
st->seekg(0, std::ios_base::end);
auto ssize = st->tellg();
st->seekg(curPos);
return ssize;
}