|
Unicorn XML Toolkit Version 1.50.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: �CONSTR�|� FUNCTION �|�DATA | DETAIL: �CONSTR�|� FUNCTION �|�DATA |
class IStream: public CInterface { public: enum { begin, current, end }; public: virtual ~IStream(); public: virtual int Read(BYTE *pBuf, int nCount); virtual void Write(const BYTE *pBuf, int nCount); virtual void SetPosition(long lOff, int nFrom); virtual long GetPosition(); }; typedef XInterface<IStream> XStream;
The base class for byte streams.
Constructor/Destructor Summary | |
~IStream
();
����������Destroys the byte stream. |
Function Summary | |
int
|
Read
(BYTE *pBuf, int nCount);
����������Reads the specified number of bytes into the specified buffer from this stream. |
void
|
Write
(const BYTE *pBuf, int nCount);
����������Writes the specified number of bytes from the specified buffer to this stream. |
void
|
SetPosition
(long lOff, int nFrom);
����������Moves the stream I/O pointer to the specified position. |
long
|
GetPosition
();
����������Returns a current position of the stream I/O pointer. |
Constructor/Destructor Detail |
virtual ~IStream();
Destroys the byte stream.
Function Detail |
virtual int Read(BYTE *pBuf, int nCount);
Reads the specified number of bytes into the specified buffer from this stream.
The number of bytes actually read may be less than the number of bytes requested.
pBuf
- the buffer to hold resultnCount
- the number of bytes to readvirtual void Write(const BYTE *pBuf, int nCount);
Writes the specified number of bytes from the specified buffer to this stream.
pBuf
- the buffer to writenCount
- the number of bytes to writevirtual void SetPosition(long lOff, int nFrom);
Moves the stream I/O pointer to the specified position.
The stream I/O pointer is positioned relatively to the origin.
The origin is specified using the origin code; allowed values
are:
begin
for beginning of the stream,
current
for current position of the stream I/O pointer, and
end
for end of the stream.
lOff
- the relative positionnFrom
- the origin codevirtual long GetPosition();
Returns a current position of the stream I/O pointer.
|
Unicorn XML Toolkit Version 1.50.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: �CONSTR�|� FUNCTION �|�DATA | DETAIL: �CONSTR�|� FUNCTION �|�DATA |