test NSFile::CFileBinary as Stream

This commit is contained in:
Ivan Morozov
2022-08-01 19:37:43 +03:00
parent fa16a17aec
commit 54261fd1a1
17 changed files with 183 additions and 178 deletions

View File

@ -1,15 +0,0 @@
#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;
}