|
Classes |
| struct | OSMemBuf |
Defines |
|
#define | OSMBDFLTSEGSIZE 1024 |
|
#define | OSMEMBUFPTR(pmb) ((pmb)->buffer + (pmb)->startidx) |
|
#define | OSMEMBUFENDPTR(pmb) ((pmb)->buffer + (pmb)->startidx + (pmb)->usedcnt) |
|
#define | OSMEMBUFUSEDSIZE(pmb) ((size_t)(pmb)->usedcnt) |
|
#define | OSMBAPPENDSTR(pmb, str) rtxMemBufAppend(pmb,(OSOCTET*)str,strlen(str)) |
|
#define | OSMBAPPENDUTF8(pmb, str) rtxMemBufAppend(pmb,(OSOCTET*)str,rtxUTF8LenBytes(str)) |
Typedefs |
|
typedef OSMemBuf | OSMemBuf |
Functions |
| int | rtxMemBufAppend (OSMemBuf *pMemBuf, const OSOCTET *pdata, OSUINT32 nbytes) |
| | This function appends the data to the end of a memory buffer.
|
| int | rtxMemBufCut (OSMemBuf *pMemBuf, OSUINT32 fromOffset, OSUINT32 nbytes) |
| | This function cuts off the part of memory buffer.
|
| void | rtxMemBufFree (OSMemBuf *pMemBuf) |
| | This function frees the memory buffer.
|
| OSOCTET * | rtxMemBufGetData (OSMemBuf *pMemBuf, int *length) |
| | This function returns the pointer to the used part of a memory buffer.
|
| int | rtxMemBufGetDataLen (OSMemBuf *pMemBuf) |
| | This function returns the length of the used part of a memory buffer.
|
| void | rtxMemBufInit (OSCTXT *pCtxt, OSMemBuf *pMemBuf, OSUINT32 segsize) |
| | This function initializes a memory buffer structure.
|
| void | rtxMemBufInitBuffer (OSCTXT *pCtxt, OSMemBuf *pMemBuf, OSOCTET *buf, OSUINT32 bufsize, OSUINT32 segsize) |
| | This function assigns a static buffer to the memory buffer structure.
|
| int | rtxMemBufPreAllocate (OSMemBuf *pMemBuf, OSUINT32 nbytes) |
| | This function allocates a buffer with a predetermined amount of space.
|
| void | rtxMemBufReset (OSMemBuf *pMemBuf) |
| | This function resets the memory buffer structure.
|
| int | rtxMemBufSet (OSMemBuf *pMemBuf, OSOCTET value, OSUINT32 nbytes) |
| | This function sets part of a memory buffer to a specified octet value.
|
| int | rtxMemBufTrimW (OSMemBuf *pMemBuf) |
| | This function trims white space of the memory buffer.
|