mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-15 15:20:04 +08:00
new Stream for StreamView
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user