ASN1C C/C++ Common Runtime  ASN1C v7.7.x
Classes | Macros | Typedefs | Functions
rtxMemBuf.h File Reference
#include "rtxsrc/rtxContext.h"

Go to the source code of this file.

Classes

struct  OSRTMEMBUF
 

Macros

#define OSMBDFLTSEGSIZE   1024
 
#define OSMEMBUFPTR(pmb)   ((pmb)->buffer + (pmb)->startidx)
 
#define OSMEMBUFENDPTR(pmb)   ((pmb)->buffer + (pmb)->startidx + (pmb)->usedcnt)
 
#define OSMEMBUFUSEDSIZE(pmb)   ((OSSIZE)(pmb)->usedcnt)
 
#define OSMBAPPENDSTR(pmb, str)
 
#define OSMBAPPENDSTRL(pmb, str)   rtxMemBufAppend(pmb,(OSOCTET*)str,OSCRTLSTRLEN(str))
 
#define OSMBAPPENDUTF8(pmb, str)
 
#define OSMBAPPENDSTRZ(pmb, str)   rtxMemBufAppend(pmb,(OSOCTET*)str,OSCRTLSTRLEN(str)+1)
 

Typedefs

typedef struct OSRTMEMBUF OSRTMEMBUF
 

Functions

int rtxMemBufAppend (OSRTMEMBUF *pMemBuf, const OSOCTET *pdata, OSSIZE nbytes)
 
int rtxMemBufCut (OSRTMEMBUF *pMemBuf, OSSIZE fromOffset, OSSIZE nbytes)
 
void rtxMemBufFree (OSRTMEMBUF *pMemBuf)
 
OSOCTET * rtxMemBufGetData (const OSRTMEMBUF *pMemBuf, int *length)
 
OSOCTET * rtxMemBufGetDataExt (const OSRTMEMBUF *pMemBuf, OSSIZE *length)
 
OSSIZE rtxMemBufGetDataLen (const OSRTMEMBUF *pMemBuf)
 
void rtxMemBufInit (OSCTXT *pCtxt, OSRTMEMBUF *pMemBuf, OSSIZE segsize)
 
void rtxMemBufInitBuffer (OSCTXT *pCtxt, OSRTMEMBUF *pMemBuf, OSOCTET *buf, OSSIZE bufsize, OSSIZE segsize)
 
int rtxMemBufPreAllocate (OSRTMEMBUF *pMemBuf, OSSIZE nbytes)
 
void rtxMemBufReset (OSRTMEMBUF *pMemBuf)
 
int rtxMemBufSet (OSRTMEMBUF *pMemBuf, OSOCTET value, OSSIZE nbytes)
 
OSBOOL rtxMemBufSetExpandable (OSRTMEMBUF *pMemBuf, OSBOOL isExpandable)
 
OSBOOL rtxMemBufSetUseSysMem (OSRTMEMBUF *pMemBuf, OSBOOL value)
 
OSSIZE rtxMemBufTrimW (OSRTMEMBUF *pMemBuf)