#include <stream_intf.h>
Inherits adtf::ucom::ant::IInputStream, and adtf::ucom::ant::IOutputStream.
|
| | ADTF_IID (IStream, "stream.ant.ucom.adtf.iid") |
| |
| virtual tResult | Seek (tFilePos nPos, tSeekOrigin eOrigin, tFilePos *pNewPos=nullptr) const =0 |
| |
| virtual tResult | Reset ()=0 |
| |
| virtual tResult | Flush ()=0 |
| |
| | ADTF_IID (IInputStream, "input_stream.ant.ucom.adtf.iid") |
| |
| virtual tResult | Read (void *pvBuffer, size_t nBufferSize, size_t *pnBytesRead=nullptr) const =0 |
| |
| | ADTF_IID (IObject, "object.ant.ucom.adtf.iid") |
| |
| | ADTF_IID (IOutputStream, "output_stream.ant.ucom.adtf.iid") |
| |
| virtual tResult | Write (const void *pvBuffer, size_t nBufferSize, size_t *pnBytesWritten=nullptr)=0 |
| |
|
|
static const uint8_t | m_ui8PlatformByteOrder |
| |
|
|
| ~IStream ()=default |
| | Protected destructor --> Only the final implementation can be destroyed!
|
| |
|
| ~IObject ()=default |
| | Protected destructor --> Only the final implementation can be destroyed!
|
| |
The IStream interface provides defines methods for streaming data.
◆ tSeekOrigin
Stream seek origin.
| Enumerator |
|---|
| SO_Begin | The position origin is the beginning of the stream.
|
| SO_Current | The position is relative to the current stream position.
|
| SO_End | The position is relative to end of the stream.
|
◆ tStreamFlags
Stream flags.
| Enumerator |
|---|
| SF_NONE | no flags set.
|
◆ ADTF_IID()
| adtf::ucom::ant::IStream::ADTF_IID |
( |
IStream | , |
|
|
"stream.ant.ucom.adtf.iid" | ) |
◆ Flush()
| virtual tResult adtf::ucom::ant::IStream::Flush |
( |
| ) |
|
|
pure virtual |
Flush stream data. The Flush method flushes all current stream data.
- Returns
- Returns a standard result code.
◆ Reset()
| virtual tResult adtf::ucom::ant::IStream::Reset |
( |
| ) |
|
|
pure virtual |
Reset stream. The Reset method resets the stream.
- Returns
- Returns a standard result code.
◆ Seek()
| virtual tResult adtf::ucom::ant::IStream::Seek |
( |
tFilePos | nPos, |
|
|
tSeekOrigin | eOrigin, |
|
|
tFilePos * | pNewPos = nullptr ) const |
|
pure virtual |
Set stream position. The Seek method sets the current stream position.
- Parameters
-
| nPos | [in] Position the stream should be set to. |
| eOrigin | [in] Origin reference of the position value. |
| pNewPos | [in,out] Pointer to a variable that receives the new stream position value. |
- Returns
- Returns a standard result code.
The documentation for this class was generated from the following file: