new Stream for StreamView

This commit is contained in:
Ivan Morozov
2022-08-03 17:23:53 +03:00
parent ad10681ba0
commit 58f2b9d3f0
12 changed files with 161 additions and 129 deletions

View File

@ -6,13 +6,12 @@ using namespace CFCPP;
StreamRW::StreamRW(const Stream &stream)
: stream(stream)
{
buffer.fill(0);
}
T_LONG64 StreamRW::Seek(T_LONG64 offset)
{
stream->seekp(offset, std::ios::beg);
return stream->tellp();
stream->seek(offset, std::ios::beg);
return stream->tell();
}
void StreamRW::ReadArray(char *data, int lenght)