21#if !defined WIN32_LEAN_AND_MEAN
22# define WIN32_LEAN_AND_MEAN
36 ULARGE_INTEGER nNewPosition;
39 stream->Seek( nMove, STREAM_SEEK_SET, &nNewPosition );
49 unsigned long newsize;
56 return static_cast<unsigned long>(0);
63 ULARGE_INTEGER NewPosition;
65 NewPosition.QuadPart = 0;
69 return static_cast<long>(NewPosition.QuadPart);
79 Move.QuadPart =
static_cast<__int64
>(offset);
84 dwOrigin = STREAM_SEEK_CUR;
87 dwOrigin = STREAM_SEEK_END;
90 dwOrigin = STREAM_SEEK_SET;
107 file = _wfsopen(filename, L
"rb", _SH_DENYNO);
116unsigned long FileStream::sread (
unsigned char *buf,
unsigned long size)
119 return static_cast<unsigned long>(fread(buf, 1, size, file));
123long FileStream::stell ()
130long FileStream::sseek (
long offset,
int origin)
133 return fseek(file, offset, origin);
unsigned long sread(unsigned char *vuf, unsigned long size) override
long sseek(long offset, int origin) override
BufferStream(IStream *str)
Reference< XOutputStream > stream