XBinder  Version 2.9.x
Classes | Typedefs | Functions
rtxBuffer.h File Reference

Common runtime functions for reading from or writing to the message buffer defined within the context structure. More...

#include "rtxsrc/rtxContext.h"
#include "rtxsrc/rtxSList.h"

Go to the source code of this file.

Classes

struct  _OSRTBufLocDescr
 Buffer location descriptor. More...
 

Typedefs

typedef struct _OSRTBufLocDescr OSRTBufLocDescr
 Buffer location descriptor.
 

Functions

EXTERNRT int rtxCheckOutputBuffer (OSCTXT *pctxt, size_t nbytes)
 This function checks to ensure that the output buffer has sufficient space to hold an additional nbytes full bytes (if there is a partially filled byte, it is treated as though full). More...
 
EXTERNRT OSBOOL rtxIsOutputBufferFlushable (OSCTXT *pctxt)
 This function returns true if the context buffer can be flushed to a stream by calling rtxFlushOutputBuffer. More...
 
EXTERNRT int rtxFlushOutputBuffer (OSCTXT *pctxt)
 This function flushes the buffer to a stream. More...
 
EXTERNRT int rtxExpandOutputBuffer (OSCTXT *pctxt, size_t nbytes)
 This function attempts to ensure the output buffer has at least the given number of bytes available. More...
 
EXTERNRT int rtxCheckInputBuffer (OSCTXT *pctxt, size_t nbytes)
 Ensures the given number of bytes are available in the context buffer. More...
 
EXTERNRT int rtxLoadInputBuffer (OSCTXT *pctxt, OSSIZE nbytes)
 This is for meant for internal use by the runtime. More...
 
EXTERNRT int rtxPeekByte (OSCTXT *pctxt, OSOCTET *pbyte)
 This function peeks at the next byte of input, if there is one before EOF. More...
 
EXTERNRT int rtxPeekBytes (OSCTXT *pctxt, OSOCTET *pdata, OSSIZE bufsize, OSSIZE nocts, OSSIZE *pactual)
 This function peeks at the next nocts bytes of input, peeking at fewer bytes if EOF is encountered first. More...
 
EXTERNRT int rtxReadBytesSafe (OSCTXT *pctxt, OSOCTET *buffer, size_t bufsize, size_t nocts)
 This function safely reads bytes from the currently open stream or memory buffer into the given static buffer. More...
 
EXTERNRT int rtxReadBytes (OSCTXT *pctxt, OSOCTET *pdata, size_t nocts)
 This function reads bytes from the currently open stream or memory buffer. More...
 
EXTERNRT int rtxReadBytesDynamic (OSCTXT *pctxt, OSOCTET **ppdata, size_t nocts, OSBOOL *pMemAlloc)
 This function reads bytes from the currently open stream or memory buffer. More...
 
EXTERNRT int rtxWriteBytes (OSCTXT *pctxt, const OSOCTET *pdata, size_t nocts)
 This function writes bytes to the currently open stream or memory buffer. More...
 
EXTERNRT int rtxWriteIndent (OSCTXT *pctxt)
 This function writes a newline followed by indentation whitespace to the buffer. More...
 
EXTERNRT void rtxIndentDecr (OSCTXT *pctxt)
 This decreases the indentation level set in the given context by updating the indent member. More...
 
EXTERNRT void rtxIndentIncr (OSCTXT *pctxt)
 This increases the indentation level set in the given context by updating the indent member. More...
 
EXTERNRT void rtxIndentReset (OSCTXT *pctxt)
 This resets the indentation level in the given context to zero. More...
 
EXTERNRT size_t rtxGetIndentLevels (OSCTXT *pctxt)
 This returns the number of levels of indentation set in the given context. More...
 
EXTERNRT OSBOOL rtxCanonicalSort (OSOCTET *refPoint, OSRTSList *pList, OSBOOL normal)
 Sort a list of buffer locations, referring to component encodings, by comparing the referenced encodings as octet strings. More...
 
EXTERNRT int rtxEncCanonicalSort (OSCTXT *pctxt, OSCTXT *pMemCtxt, OSRTSList *pList)
 Encode the encodings held in pMemCtxt into pctxt, first sorting them as required for canonical BER (and other encoding rules) by X.690 11.6. More...
 
EXTERNRT void rtxGetBufLocDescr (OSCTXT *pctxt, OSRTBufLocDescr *pDescr)
 Set the buffer location description's offset (pDescr->offset) to the current position in pCtxt's buffer.
 
EXTERNRT void rtxAddBufLocDescr (OSCTXT *pctxt, OSRTSList *pElemList, OSRTBufLocDescr *pDescr)
 Create a new Asn1BufLocDescr for an element just encoded and append it to pElemList. More...
 

Detailed Description

Common runtime functions for reading from or writing to the message buffer defined within the context structure.

Definition in file rtxBuffer.h.