67 (
struct OSRTSTREAM* pStream, OSOCTET* pbuffer,
size_t bufSize);
75 (
struct OSRTSTREAM* pStream, OSOCTET* pbuffer,
size_t toReadBytes);
83 const OSOCTET* data,
size_t numocts);
138 #define OSRTSTRMF_INPUT 0x0001 139 #define OSRTSTRMF_OUTPUT 0x0002 140 #define OSRTSTRMF_BUFFERED 0x8000 141 #define OSRTSTRMF_UNBUFFERED 0x4000 142 #define OSRTSTRMF_POSMARKED 0x2000 143 #define OSRTSTRMF_FIXINMEM 0x1000 144 #define OSRTSTRMF_HEXTEXT 0x0800 146 #define OSRTSTRMF_BUF_INPUT (OSRTSTRMF_INPUT|OSRTSTRMF_BUFFERED) 147 #define OSRTSTRMF_BUF_OUTPUT (OSRTSTRMF_OUTPUT|OSRTSTRMF_BUFFERED) 150 #define OSRTSTRMID_FILE 1 151 #define OSRTSTRMID_SOCKET 2 152 #define OSRTSTRMID_MEMORY 3 153 #define OSRTSTRMID_BUFFERED 4 154 #define OSRTSTRMID_DIRECTBUF 5 155 #define OSRTSTRMID_CTXTBUF 6 156 #define OSRTSTRMID_ZLIB 7 157 #define OSRTSTRMID_USER 1000 159 #define OSRTSTRM_K_BUFSIZE 1024 161 #define OSRTSTRM_K_INVALIDMARK ((size_t)-1) 163 #define OSRTSTREAM_BYTEINDEX(pctxt) \ 164 (((pctxt)->pStream->flags & OSRTSTRMF_BUFFERED) ? \ 165 ((pctxt)->pStream->bytesProcessed + (pctxt)->buffer.byteIndex) : \ 166 ((pctxt)->pStream->bytesProcessed )) 168 #define OSRTSTREAM_ID(pctxt) ((pctxt)->pStream->id) 169 #define OSRTSTREAM_FLAGS(pctxt) ((pctxt)->pStream->flags) 289 (
OSCTXT* pctxt, OSOCTET* pbuffer,
size_t bufSize);
291 EXTERNRT
long rtxStreamReadDirect
292 (
OSCTXT* pctxt, OSOCTET* pbuffer, OSSIZE bufSize);
311 (
OSCTXT* pctxt, OSOCTET* pbuffer,
size_t readBytes);
339 (
OSCTXT* pctxt,
const OSOCTET* data,
size_t numocts);
OSRTStreamGetPosProc getPos
Definition: rtxStream.h:186
int(* OSRTStreamSkipProc)(struct OSRTSTREAM *pStream, size_t skipBytes)
Definition: rtxStream.h:105
size_t markedBytesProcessed
Definition: rtxStream.h:196
int rtxStreamSkip(OSCTXT *pctxt, size_t skipBytes)
size_t readAheadLimit
Definition: rtxStream.h:192
int rtxStreamGetPos(OSCTXT *pctxt, size_t *ppos)
int rtxStreamInit(OSCTXT *pctxt)
OSUINT16 flags
Definition: rtxStream.h:211
int(* OSRTStreamCloseProc)(struct OSRTSTREAM *pStream)
Definition: rtxStream.h:97
size_t segsize
Definition: rtxStream.h:202
OSUINT32 id
Definition: rtxStream.h:203
OSRTStreamWriteProc write
Definition: rtxStream.h:180
size_t nextMarkOffset
Definition: rtxStream.h:200
int rtxStreamReset(OSCTXT *pctxt)
OSRTMEMBUF * pCaptureBuf
Definition: rtxStream.h:209
long rtxStreamWrite(OSCTXT *pctxt, const OSOCTET *data, size_t numocts)
int(* OSRTStreamSetPosProc)(struct OSRTSTREAM *pStream, size_t pos)
Definition: rtxStream.h:136
int rtxStreamSetPos(OSCTXT *pctxt, size_t pos)
size_t bytesProcessed
Definition: rtxStream.h:194
OSRTStreamSetPosProc setPos
Definition: rtxStream.h:187
int(* OSRTStreamFlushProc)(struct OSRTSTREAM *pStream)
Definition: rtxStream.h:90
int rtxStreamFlush(OSCTXT *pctxt)
long(* OSRTStreamWriteProc)(struct OSRTSTREAM *pStream, const OSOCTET *data, size_t numocts)
Definition: rtxStream.h:82
OSRTStreamSkipProc skip
Definition: rtxStream.h:183
int(* OSRTStreamResetProc)(struct OSRTSTREAM *pStream)
Definition: rtxStream.h:120
long rtxStreamRead(OSCTXT *pctxt, OSOCTET *pbuffer, size_t bufSize)
int rtxStreamRemoveCtxtBuf(OSCTXT *pctxt)
long(* OSRTStreamReadProc)(struct OSRTSTREAM *pStream, OSOCTET *pbuffer, size_t bufSize)
Definition: rtxStream.h:67
int(* OSRTStreamMarkProc)(struct OSRTSTREAM *pStream, size_t readAheadLimit)
Definition: rtxStream.h:113
int rtxStreamClose(OSCTXT *pctxt)
size_t bufsize
Definition: rtxStream.h:190
size_t ioBytes
Definition: rtxStream.h:198
OSRTStreamMarkProc mark
Definition: rtxStream.h:184
OSBOOL rtxStreamIsWritable(OSCTXT *pctxt)
OSBOOL rtxStreamIsReadable(OSCTXT *pctxt)
struct OSRTSTREAM OSRTSTREAM
Definition: rtxMemBuf.h:48
OSRTStreamReadProc read
Definition: rtxStream.h:177
long rtxStreamBlockingRead(OSCTXT *pctxt, OSOCTET *pbuffer, size_t readBytes)
OSRTStreamCloseProc close
Definition: rtxStream.h:182
OSRTStreamResetProc reset
Definition: rtxStream.h:185
int rtxStreamMark(OSCTXT *pctxt, size_t readAheadLimit)
Definition: rtxContext.h:189
OSRTStreamFlushProc flush
Definition: rtxStream.h:181
Definition: rtxStream.h:176
int(* OSRTStreamGetPosProc)(struct OSRTSTREAM *pStream, size_t *ppos)
Definition: rtxStream.h:128
OSRTMEMBUF * rtxStreamGetCapture(OSCTXT *pctxt)
int rtxStreamGetIOBytes(OSCTXT *pctxt, size_t *pPos)
long(* OSRTStreamBlockingReadProc)(struct OSRTSTREAM *pStream, OSOCTET *pbuffer, size_t toReadBytes)
Definition: rtxStream.h:75
OSBOOL rtxStreamMarkSupported(OSCTXT *pctxt)
void rtxStreamSetCapture(OSCTXT *pctxt, OSRTMEMBUF *pmembuf)
int rtxStreamInitCtxtBuf(OSCTXT *pctxt)
OSRTStreamBlockingReadProc blockingRead
Definition: rtxStream.h:179
int rtxStreamRelease(OSCTXT *pctxt)
void * extra
Definition: rtxStream.h:189
OSBOOL rtxStreamIsOpened(OSCTXT *pctxt)