mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-20 07:41:12 +08:00
test NSFile::CFileBinary as Stream
This commit is contained in:
@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user