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
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_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
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.
@ SO_End
The position is relative to end of the stream.
@ SO_Current
The position is relative to the current stream position.
@ SO_Begin
The position origin is the beginning of the stream.
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 --> Only the final implementation can be destroyed!
virtual tResult Flush()=0
Flush stream data.
Namespace for all functionality provided since v3.0.
Namespace for the ADTF uCOM3 SDK.
Namespace for entire ADTF SDK.