Push interface.
More...
#include <base/io/PushInterface.h>
Inherited by Adler32, CRC32, Deflater [virtual]
, Inflater [virtual]
, MD5Sum, OrbConnection, SHA1, SHA256, SHA384, and SHA512.
|
virtual void | flush () |
|
virtual bool | pushBegin (uint64 totalSize) |
|
virtual MemorySize | push (const uint8 *buffer, MemorySize size)=0 |
|
virtual void | pushEnd () |
|
Push interface.
Low-level push interface for in-memory IO.
- Version
- 1.0
- Examples
- testsuite/http.cpp.
◆ flush()
virtual void PushInterface::flush |
( |
| ) |
|
|
virtual |
◆ push()
virtual MemorySize PushInterface::push |
( |
const uint8 * |
buffer, |
|
|
MemorySize |
size |
|
) |
| |
|
pure virtual |
Pushes the specified number of bytes onto the stream.
- Parameters
-
buffer | The buffer containing the bytes to be pushed. |
size | The number of bytes to be pushed. |
- Returns
- The number of bytes pushed.
Implemented in CRC32, Adler32, SHA256, SHA512, SHA384, SHA1, BZip2Deflater, ZLibDeflater, BZip2Inflater, ZLibInflater, MD5Sum, and LocalConnection.
- Examples
- testsuite/http.cpp.
◆ pushBegin()
virtual bool PushInterface::pushBegin |
( |
uint64 |
totalSize | ) |
|
|
virtual |
Begins the pushes.
- Parameters
-
totalSize | The total number of bytes to be pushed. |
- Examples
- testsuite/http.cpp.
◆ pushEnd()
virtual void PushInterface::pushEnd |
( |
| ) |
|
|
virtual |
This method should be invoked when the end has been reached. This method may be ignored by some implementations.
Reimplemented in SHA256, SHA512, SHA384, SHA1, CRC32, BZip2Deflater, ZLibDeflater, BZip2Inflater, ZLibInflater, MD5Sum, and LocalConnection.
- Examples
- testsuite/digest.cpp, and testsuite/http.cpp.