#include <ZStream.h>
Inheritance diagram for ZStreamRPos_Null:
Public Member Functions | |
virtual void | Imp_CopyToDispatch (const ZStreamW &iStreamW, uint64 iCount, uint64 *oCountRead, uint64 *oCountWritten) |
Invoke iStreamW's Imp_CopyFrom method. | |
virtual void | Imp_CopyTo (const ZStreamW &iStreamW, uint64 iCount, uint64 *oCountRead, uint64 *oCountWritten) |
Actually copy data from this stream to iStreamW. | |
virtual void | Imp_Skip (uint64 iCount, uint64 *oCountSkipped) |
Read and discard iCount bytes. |
ZStreamRPos_Null responds to all requests as if it had no content. Its size is always zero, and any attempt to read, skip or copy from it will return zero as the count of bytes transferred.
void ZStreamRPos_Null::Imp_CopyToDispatch | ( | const ZStreamW & | iStreamW, | |
uint64 | iCount, | |||
uint64 * | oCountRead, | |||
uint64 * | oCountWritten | |||
) | [virtual] |
Invoke iStreamW's Imp_CopyFrom
method.
The first part of the two-stage dispatch initiated by ZStreamR::CopyTo and ZStreamR::CopyAllTo. Override this method if your stream's data is in memory and thus can be written to iStreamW by a single call to its Write
method.
Reimplemented from ZStreamR.
void ZStreamRPos_Null::Imp_CopyTo | ( | const ZStreamW & | iStreamW, | |
uint64 | iCount, | |||
uint64 * | oCountRead, | |||
uint64 * | oCountWritten | |||
) | [virtual] |
Actually copy data from this stream to iStreamW.
The second part of the two-stage dispatch initiated by ZStreamW::CopyFrom and ZStreamW::CopyAllFrom. The default implementation calls sCopyReadToWrite
. Override this method if your stream's data is in memory and thus can be written to iStreamW by a single call to its Write
method.
Reimplemented from ZStreamR.
Read and discard iCount bytes.
Override this method if your stream implementation can skip past bytes in the stream without actually reading them.
iCount | Count of bytes to be skipped. | |
oCountSkipped | Number of bytes that were actually skipped. If iCount is non zero and oCountSkipped is set to zero then this indicates that the stream has reached its end. |
Reimplemented from ZStreamRPos.