Files
core/Common/cppcf/streamrw.cpp
2022-08-01 19:37:43 +03:00

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();
}