8 #ifndef _ADTF_UCOM_ANT_STREAM_INTERFACE_INCLUDES_HEADER_
9 #define _ADTF_UCOM_ANT_STREAM_INTERFACE_INCLUDES_HEADER_
45 virtual tResult Read(
void* pvBuffer,
size_t nBufferSize,
size_t* pnBytesRead =
nullptr)
const = 0;
75 virtual tResult Write(
const void* pvBuffer,
size_t nBufferSize,
size_t* pnBytesWritten =
nullptr) = 0;
95 static const uint8_t m_ui8PlatformByteOrder;
99 typedef enum : uint8_t
#define UCOM_RESOLVE(...)
Resolve a path to a base class which is inherited multiple times.
tInt64 tFilePos
type definition for a file or stream position value (platform and compiler independent type).
A common result class usable as return value throughout.
Base class for every interface type within the uCOM.
An interface for writing data to a stream.
virtual tResult Write(const void *pvBuffer, size_t nBufferSize, size_t *pnBytesWritten=nullptr)=0
Write data to stream.
ADTF_IID(IOutputStream, "output_stream.ant.ucom.adtf.iid")
Marks the IOutputStream to be castable with the ucom_cast<>
The IStream interface provides defines methods for streaming data.
tSeekOrigin
Stream seek origin.
virtual tResult Seek(tFilePos nPos, tSeekOrigin eOrigin, tFilePos *pNewPos=nullptr) const =0
Set stream position.
virtual tResult Reset()=0
Reset stream.
ADTF_IID(IStream, "stream.ant.ucom.adtf.iid")
Marks the IStream to be castable with the ucom_cast<>
~IStream()=default
Protected destructor --> Use implemented Destroy() instead of delete!
virtual tResult Flush()=0
Flush stream data.
Namespace for entire ADTF SDK.