mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-15 19:03:05 +08:00
17 lines
274 B
C++
17 lines
274 B
C++
#include "streamrw.h"
|
|
#include <algorithm>
|
|
|
|
using namespace CFCPP;
|
|
|
|
StreamRW::StreamRW(const Stream &stream)
|
|
: stream(stream)
|
|
{}
|
|
|
|
T_LONG64 StreamRW::Seek(T_LONG64 offset)
|
|
{
|
|
if(!stream->SeekFile(offset, SEEK_SET))
|
|
return -1;
|
|
|
|
return stream->TellFile();
|
|
}
|