ASN1C C/C++ Common Runtime  ASN1C v7.8.x
rtxStreamMemory.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2003-2022 Objective Systems, Inc.
3  *
4  * This software is furnished under a license and may be used and copied
5  * only in accordance with the terms of such license and with the
6  * inclusion of the above copyright notice. This software or any other
7  * copies thereof may not be provided or otherwise made available to any
8  * other person. No title to and ownership of the software is hereby
9  * transferred.
10  *
11  * The information in this software is subject to change without notice
12  * and should not be construed as a commitment by Objective Systems, Inc.
13  *
14  * PROPRIETARY NOTICE
15  *
16  * This software is an unpublished work subject to a confidentiality agreement
17  * and is protected by copyright and trade secret law. Unauthorized copying,
18  * redistribution or other use of this work is prohibited.
19  *
20  * The above notice of copyright on this source code product does not indicate
21  * any actual or intended publication of such source code.
22  *
23  *****************************************************************************/
27 #ifndef _RTXSTREAMMEMORY_H_
28 #define _RTXSTREAMMEMORY_H_
29 
30 #ifndef _NO_STREAM
31 
32 #include "rtxsrc/rtxStream.h"
33 
34 typedef struct DirBufDesc {
35  OSCTXT* pctxt;
36  OSRTSTREAM* pUnderStream; /* underlying stream object */
37  size_t savedIndex;
38 } DirBufDesc;
39 
40 #ifdef __cplusplus
41 extern "C" {
42 #endif
43 
61 EXTERNRT int rtxStreamMemoryCreate (OSCTXT* pctxt, OSUINT16 flags);
62 
77 EXTERNRT int rtxStreamMemoryAttach (OSCTXT* pctxt, OSOCTET* pMemBuf,
78  size_t bufSize, OSUINT16 flags);
79 
90 EXTERNRT OSOCTET* rtxStreamMemoryGetBuffer (OSCTXT* pctxt, size_t* pSize);
91 
102 EXTERNRT int rtxStreamMemoryCreateReader
103  (OSCTXT* pctxt, OSOCTET* pMemBuf, size_t bufSize);
104 
118 EXTERNRT int rtxStreamMemoryCreateWriter
119  (OSCTXT* pctxt, OSOCTET* pMemBuf, size_t bufSize);
120 
130 EXTERNRT int rtxStreamMemoryResetWriter (OSCTXT* pctxt);
131 
136 #ifdef __cplusplus
137 }
138 #endif
139 
140 #endif /* _NO_STREAM */
141 #endif /* _RTXSTREAMMEMORY_H_ */
142 
int rtxStreamMemoryCreateReader(OSCTXT *pctxt, OSOCTET *pMemBuf, size_t bufSize)
OSOCTET * rtxStreamMemoryGetBuffer(OSCTXT *pctxt, size_t *pSize)
int rtxStreamMemoryResetWriter(OSCTXT *pctxt)
int rtxStreamMemoryAttach(OSCTXT *pctxt, OSOCTET *pMemBuf, size_t bufSize, OSUINT16 flags)
int rtxStreamMemoryCreateWriter(OSCTXT *pctxt, OSOCTET *pMemBuf, size_t bufSize)
Definition: rtxStreamMemory.h:34
int rtxStreamMemoryCreate(OSCTXT *pctxt, OSUINT16 flags)
Definition: rtxContext.h:198
Definition: rtxStream.h:184