33#ifndef API_MIP_STREAM_H_
34#define API_MIP_STREAM_H_
55 virtual int64_t
Read(uint8_t* buffer, int64_t bufferLength) = 0;
64 virtual int64_t
Write(
const uint8_t* buffer, int64_t bufferLength) = 0;
78 virtual void Seek(int64_t position) = 0;
113 virtual void Size(int64_t value) = 0;
A class that defines the interface between the MIP SDK and stream-based content.
virtual bool CanWrite() const =0
A check if stream can be written to.
virtual int64_t Size()=0
Get the size of the content within the stream.
virtual bool CanRead() const =0
A check if stream can be read from.
virtual int64_t Position()=0
Get the current position within the stream.
virtual int64_t Read(uint8_t *buffer, int64_t bufferLength)=0
Read into a buffer from the stream.
virtual int64_t Write(const uint8_t *buffer, int64_t bufferLength)=0
Write into the stream from a buffer.
virtual void Seek(int64_t position)=0
Seek specific position within the stream.
virtual void Size(int64_t value)=0
Set the stream size.
virtual bool Flush()=0
flush the stream.