62 #define OSMBDFLTSEGSIZE 1024 64 #define OSMEMBUFPTR(pmb) ((pmb)->buffer + (pmb)->startidx) 65 #define OSMEMBUFENDPTR(pmb) ((pmb)->buffer + (pmb)->startidx + (pmb)->usedcnt) 66 #define OSMEMBUFUSEDSIZE(pmb) ((OSSIZE)(pmb)->usedcnt) 68 #define OSMBAPPENDSTR(pmb,str) if (0 != str) \ 69 rtxMemBufAppend(pmb,(OSOCTET*)str,OSCRTLSTRLEN(str)) 71 #define OSMBAPPENDSTRL(pmb,str) \ 72 rtxMemBufAppend(pmb,(OSOCTET*)str,OSCRTLSTRLEN(str)) 74 #define OSMBAPPENDUTF8(pmb,str) if (0 != str) \ 75 rtxMemBufAppend(pmb,(OSOCTET*)str,rtxUTF8LenBytes(str)) 98 (
OSRTMEMBUF* pMemBuf,
const OSOCTET* pdata, OSSIZE nbytes);
115 (
OSRTMEMBUF* pMemBuf, OSSIZE fromOffset, OSSIZE nbytes);
192 OSOCTET* buf, OSSIZE bufsize,
OSSIZE rtxMemBufTrimW(OSRTMEMBUF *pMemBuf)
int rtxMemBufSet(OSRTMEMBUF *pMemBuf, OSOCTET value, OSSIZE nbytes)
void rtxMemBufInit(OSCTXT *pCtxt, OSRTMEMBUF *pMemBuf, OSSIZE segsize)
OSOCTET * rtxMemBufGetData(const OSRTMEMBUF *pMemBuf, int *length)
void rtxMemBufReset(OSRTMEMBUF *pMemBuf)
int rtxMemBufPreAllocate(OSRTMEMBUF *pMemBuf, OSSIZE nbytes)
Definition: rtxMemBuf.h:48
OSSIZE rtxMemBufGetDataLen(const OSRTMEMBUF *pMemBuf)
OSBOOL rtxMemBufSetUseSysMem(OSRTMEMBUF *pMemBuf, OSBOOL value)
OSOCTET * rtxMemBufGetDataExt(const OSRTMEMBUF *pMemBuf, OSSIZE *length)
Definition: rtxContext.h:197
void rtxMemBufFree(OSRTMEMBUF *pMemBuf)
void rtxMemBufInitBuffer(OSCTXT *pCtxt, OSRTMEMBUF *pMemBuf, OSOCTET *buf, OSSIZE bufsize, OSSIZE segsize)
int rtxMemBufCut(OSRTMEMBUF *pMemBuf, OSSIZE fromOffset, OSSIZE nbytes)
int rtxMemBufAppend(OSRTMEMBUF *pMemBuf, const OSOCTET *pdata, OSSIZE nbytes)
OSBOOL rtxMemBufSetExpandable(OSRTMEMBUF *pMemBuf, OSBOOL isExpandable)