14 #ifndef DISABLE_STREAM_PLAYER // [ 16 #ifndef _StreamBufferDataSource_h_ 17 #define _StreamBufferDataSource_h_ 23 #include "os/OsDefs.h" 24 #include "os/OsStatus.h" 29 #define __min(a,b) (((a) < (b)) ? (a) : (b)) 61 virtual OsStatus
open() ;
64 virtual OsStatus
close() ;
70 virtual OsStatus
read(
char *szBuffer,
int iLength,
int& iLengthRead) ;
78 virtual OsStatus
peek(
char* szBuffer,
int iLength,
int& iLengthRead) ;
85 virtual OsStatus
seek(
unsigned int iLocation) ;
96 virtual OsStatus
getLength(
int& iLength) ;
103 virtual OsStatus
toString(UtlString&
string) ;
135 #endif // _StreamBufferDataSource_h_ 137 #endif // DISABLE_STREAM_PLAYER ] StreamBufferDataSource(UtlString *pBuffer, int iFlags)
Definition: StreamBufferDataSource.cpp:27
An abstraction definition of a stream data source.
Definition: StreamDataSource.h:47
UtlString * mpBuffer
Definition: StreamBufferDataSource.h:129
virtual OsStatus getPosition(int &iPosition)
Gets the current position within the stream.
Definition: StreamBufferDataSource.cpp:171
virtual OsStatus destroyAndDelete()
Destroys and deletes the data source object.
Definition: StreamBufferDataSource.cpp:72
virtual OsStatus close()
Closes the data source.
Definition: StreamBufferDataSource.cpp:66
virtual OsStatus seek(unsigned int iLocation)
Definition: StreamBufferDataSource.cpp:135
virtual OsStatus read(char *szBuffer, int iLength, int &iLengthRead)
Definition: StreamBufferDataSource.cpp:85
virtual ~StreamBufferDataSource()
Definition: StreamBufferDataSource.cpp:36
virtual OsStatus open()
Opens the data source.
Definition: StreamBufferDataSource.cpp:48
virtual OsStatus peek(char *szBuffer, int iLength, int &iLengthRead)
Definition: StreamBufferDataSource.cpp:110
StreamBufferDataSource & operator=(const StreamBufferDataSource &rhs)
Definition: StreamBufferDataSource.cpp:205
virtual OsStatus getLength(int &iLength)
Gets the length of the stream (if available)
Definition: StreamBufferDataSource.cpp:156
virtual OsStatus toString(UtlString &string)
Renders a string describing this data source.
Definition: StreamBufferDataSource.cpp:186
int miPosition
Definition: StreamBufferDataSource.h:130
Definition: StreamBufferDataSource.h:41