78 (
struct OSRTSTREAM* pStream, OSOCTET* pbuffer,
size_t nocts);
91 const OSOCTET* data,
size_t numocts);
146 #define OSRTSTRMF_INPUT 0x0001 147 #define OSRTSTRMF_OUTPUT 0x0002 148 #define OSRTSTRMF_BUFFERED 0x8000 149 #define OSRTSTRMF_UNBUFFERED 0x4000 150 #define OSRTSTRMF_POSMARKED 0x2000 151 #define OSRTSTRMF_FIXINMEM 0x1000 152 #define OSRTSTRMF_HEXTEXT 0x0800 154 #define OSRTSTRMF_BUF_INPUT (OSRTSTRMF_INPUT|OSRTSTRMF_BUFFERED) 155 #define OSRTSTRMF_BUF_OUTPUT (OSRTSTRMF_OUTPUT|OSRTSTRMF_BUFFERED) 158 #define OSRTSTRMID_FILE 1 159 #define OSRTSTRMID_SOCKET 2 160 #define OSRTSTRMID_MEMORY 3 161 #define OSRTSTRMID_BUFFERED 4 162 #define OSRTSTRMID_DIRECTBUF 5 163 #define OSRTSTRMID_CTXTBUF 6 164 #define OSRTSTRMID_ZLIB 7 165 #define OSRTSTRMID_USER 1000 167 #define OSRTSTRM_K_BUFSIZE 1024 169 #define OSRTSTRM_K_INVALIDMARK ((size_t)-1) 171 #define OSRTSTREAM_BYTEINDEX(pctxt) \ 172 (((pctxt)->pStream->flags & OSRTSTRMF_BUFFERED) ? \ 173 ((pctxt)->pStream->bytesProcessed + (pctxt)->buffer.byteIndex) : \ 174 ((pctxt)->pStream->bytesProcessed )) 176 #define OSRTSTREAM_ID(pctxt) ((pctxt)->pStream->id) 177 #define OSRTSTREAM_FLAGS(pctxt) ((pctxt)->pStream->flags) 319 (
OSCTXT* pctxt, OSOCTET* pbuffer,
size_t nocts);
322 #define rtxStreamBlockingRead rtxStreamRead 324 EXTERNRT
long rtxStreamReadDirect
325 (
OSCTXT* pctxt, OSOCTET* pbuffer, OSSIZE bufSize);
354 (
OSCTXT* pctxt,
const OSOCTET* data,
size_t numocts);
OSRTStreamGetPosProc getPos
Definition: rtxStream.h:192
int rtxStreamLoadInputBuffer(OSCTXT *pctxt, OSSIZE nbytes)
int(* OSRTStreamSkipProc)(struct OSRTSTREAM *pStream, size_t skipBytes)
Definition: rtxStream.h:113
size_t markedBytesProcessed
Definition: rtxStream.h:204
int rtxStreamSkip(OSCTXT *pctxt, size_t skipBytes)
size_t readAheadLimit
Definition: rtxStream.h:200
int rtxStreamGetPos(OSCTXT *pctxt, size_t *ppos)
int rtxStreamInit(OSCTXT *pctxt)
OSRTStreamReadProc OSRTStreamBlockingReadProc
Definition: rtxStream.h:83
OSUINT16 flags
Definition: rtxStream.h:219
int(* OSRTStreamCloseProc)(struct OSRTSTREAM *pStream)
Definition: rtxStream.h:105
size_t segsize
Definition: rtxStream.h:210
long(* OSRTStreamReadProc)(struct OSRTSTREAM *pStream, OSOCTET *pbuffer, size_t nocts)
Definition: rtxStream.h:78
OSUINT32 id
Definition: rtxStream.h:211
OSRTStreamWriteProc write
Definition: rtxStream.h:186
size_t nextMarkOffset
Definition: rtxStream.h:208
int rtxStreamReset(OSCTXT *pctxt)
OSRTMEMBUF * pCaptureBuf
Definition: rtxStream.h:217
long rtxStreamWrite(OSCTXT *pctxt, const OSOCTET *data, size_t numocts)
int(* OSRTStreamSetPosProc)(struct OSRTSTREAM *pStream, size_t pos)
Definition: rtxStream.h:144
int rtxStreamSetPos(OSCTXT *pctxt, size_t pos)
size_t bytesProcessed
Definition: rtxStream.h:202
OSRTStreamSetPosProc setPos
Definition: rtxStream.h:193
int(* OSRTStreamFlushProc)(struct OSRTSTREAM *pStream)
Definition: rtxStream.h:98
int rtxStreamFlush(OSCTXT *pctxt)
long rtxStreamRead(OSCTXT *pctxt, OSOCTET *pbuffer, size_t nocts)
long(* OSRTStreamWriteProc)(struct OSRTSTREAM *pStream, const OSOCTET *data, size_t numocts)
Definition: rtxStream.h:90
OSRTStreamSkipProc skip
Definition: rtxStream.h:189
int(* OSRTStreamResetProc)(struct OSRTSTREAM *pStream)
Definition: rtxStream.h:128
int rtxStreamRemoveCtxtBuf(OSCTXT *pctxt)
int(* OSRTStreamMarkProc)(struct OSRTSTREAM *pStream, size_t readAheadLimit)
Definition: rtxStream.h:121
int rtxStreamClose(OSCTXT *pctxt)
size_t bufsize
Definition: rtxStream.h:196
size_t ioBytes
Definition: rtxStream.h:206
OSRTStreamMarkProc mark
Definition: rtxStream.h:190
OSBOOL rtxStreamIsWritable(OSCTXT *pctxt)
OSBOOL rtxStreamIsReadable(OSCTXT *pctxt)
struct OSRTSTREAM OSRTSTREAM
Definition: rtxMemBuf.h:48
OSRTStreamReadProc read
Definition: rtxStream.h:185
OSRTStreamCloseProc close
Definition: rtxStream.h:188
OSRTStreamResetProc reset
Definition: rtxStream.h:191
int rtxStreamMark(OSCTXT *pctxt, size_t readAheadLimit)
Definition: rtxContext.h:197
OSRTStreamFlushProc flush
Definition: rtxStream.h:187
Definition: rtxStream.h:184
int(* OSRTStreamGetPosProc)(struct OSRTSTREAM *pStream, size_t *ppos)
Definition: rtxStream.h:136
OSRTMEMBUF * rtxStreamGetCapture(OSCTXT *pctxt)
int rtxStreamGetIOBytes(OSCTXT *pctxt, size_t *pPos)
OSBOOL rtxStreamMarkSupported(OSCTXT *pctxt)
void rtxStreamSetCapture(OSCTXT *pctxt, OSRTMEMBUF *pmembuf)
int rtxStreamInitCtxtBuf(OSCTXT *pctxt)
int rtxStreamRelease(OSCTXT *pctxt)
void * extra
Definition: rtxStream.h:195
OSBOOL rtxStreamIsOpened(OSCTXT *pctxt)