ASN1C C/C++ Common Runtime  ASN1C v7.8.x
rtPrintToString.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 1997-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 _RTPRINTTOSTRING_H_
28 #define _RTPRINTTOSTRING_H_
29 #include <stdio.h>
30 #include "rtsrc/asn1type.h"
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
55 EXTERNRT int rtPrintToStringBoolean (const char* name, OSBOOL value,
56  char* buffer, OSSIZE bufferSize);
57 
68 EXTERNRT int rtPrintToStringInteger (const char* name, OSINT32 value,
69  char* buffer, OSSIZE bufferSize);
70 
81 EXTERNRT int rtPrintToStringInt64 (const char* name, OSINT64 value,
82  char* buffer, OSSIZE bufferSize);
83 
91 EXTERNRT int rtPrintToStringIpv4Addr(const char* name,
92  OSSIZE numocts, const OSOCTET* data,
93  char* buffer, OSSIZE bufferSize);
94 
102 EXTERNRT int rtPrintToStringIpv6Addr(const char* name,
103  OSSIZE numocts, const OSOCTET* data,
104  char* buffer, OSSIZE bufferSize);
105 
113 EXTERNRT int rtPrintToStringTBCDStr(const char* name,
114  OSSIZE numocts, const OSOCTET* data,
115  char* buffer, OSSIZE bufferSize);
116 
123 EXTERNRT int rtPrintToStringDateTime(const char* name,
124  OSNumDateTime *pDateTime,
125  char* buffer, OSSIZE bufferSize);
126 
134 EXTERNRT int rtPrintToStringText(const char* name,
135  OSSIZE numocts, const OSOCTET* data,
136  char* buffer, OSSIZE bufferSize);
137 
148 EXTERNRT int rtPrintToStringUnsigned (const char* name, OSUINT32 value,
149  char* buffer, OSSIZE bufferSize);
150 
161 EXTERNRT int rtPrintToStringUInt64 (const char* name, OSUINT64 value,
162  char* buffer, OSSIZE bufferSize);
163 
173 EXTERNRT int rtPrintToStringBitStr (const char* name,
174  OSSIZE numbits, const OSOCTET* data, const char* conn,
175  char* buffer, OSSIZE bufferSize);
176 
189 EXTERNRT int rtPrintToStringBitStrBin(const char *name, OSSIZE numbits,
190  const OSOCTET *data, const char *conn,
191  char *buffer, OSSIZE bufferSize);
192 
209 EXTERNRT int rtPrintToStringBitStrNamed(const char* name, OSSIZE numbits,
210  const OSOCTET* data, const char* conn, OSSIZE namedBits,
211  const OSUINT32 positions[], const char* bitnames[], char *buffer,
212  OSSIZE bufferSize);
213 
232 EXTERNRT int rtPrintToStringBitStrNamedExt(const char* name, OSSIZE numbits,
233  const OSOCTET* data, OSSIZE dataSize, const OSOCTET* extdata,
234  const char* conn, OSSIZE namedBits, const OSUINT32 positions[],
235  const char* bitnames[], char* buffer, OSSIZE bufferSize);
236 
251 EXTERNRT int rtPrintToStringBitStrExt(const char* name, OSSIZE numbits,
252  const OSOCTET* data, OSSIZE dataSize, const OSOCTET* extdata,
253  const char* conn, char* buffer, OSSIZE bufferSize);
254 
266 (const char* name, OSSIZE numbits, const OSOCTET* data,
267  char* buffer, OSSIZE bufferSize);
268 
281 EXTERNRT int rtPrintToStringBitStrBraceTextExt(const char* name,
282  OSSIZE numbits, const OSOCTET* data, OSSIZE dataSize,
283  const OSOCTET* extdata, char* buffer, OSSIZE bufferSize);
284 
294 EXTERNRT int rtPrintToStringOctStr (const char* name,
295  OSSIZE numocts, const OSOCTET* data, const char* conn,
296  char* buffer, OSSIZE bufferSize);
297 
304 EXTERNRT int rtPrintToStringCharStr (const char* name,
305  const char* cstring, char* buffer, OSSIZE bufferSize);
306 
313 EXTERNRT int rtPrintToStringUTF8Str (const char *name,
314  const OSUTF8CHAR *ustring, char *buffer, OSSIZE bufferSize);
315 
324 EXTERNRT int rtPrintToString16BitCharStr (const char* name,
325  const Asn116BitCharString* bstring, const char* conn,
326  char* buffer, OSSIZE bufferSize);
327 
336 EXTERNRT int rtPrintToString32BitCharStr (const char* name,
337  const Asn132BitCharString* bstring, const char* conn,
338  char* buffer, OSSIZE bufferSize);
339 
350 EXTERNRT int rtPrintToStringReal (const char* name, OSREAL value,
351  char* buffer, OSSIZE bufferSize);
352 
361 EXTERNRT int rtPrintToStringOID (const char* name, const ASN1OBJID* pOID,
362  char* buffer, OSSIZE bufferSize);
363 
372 EXTERNRT int rtPrintToStringOIDValue (const ASN1OBJID* pOID,
373  char* buffer, OSSIZE bufferSize);
374 
387 EXTERNRT int rtPrintToStringOID2
388 (const char* name, OSSIZE numids, const OSUINT32* subidArray,
389  char* buffer, OSSIZE bufferSize);
390 
404 EXTERNRT int rtPrintToStringOIDValue2
405 (OSSIZE numids, const OSUINT32* subidArray, char* buffer, OSSIZE bufferSize);
406 
413 EXTERNRT int rtPrintToStringOIDStr(const char* name, const char* pOID,
414  char* buffer, OSSIZE bufferSize);
415 
422 EXTERNRT int rtPrintToStringOID64 (const char* name, const ASN1OID64* pOID,
423  char* buffer, OSSIZE bufferSize);
424 
430 EXTERNRT int rtPrintToStringOID64Value (const ASN1OID64* pOID,
431  char* buffer, OSSIZE bufferSize);
432 
442 EXTERNRT int rtPrintToStringOpenType (const char* name,
443  OSSIZE numocts, const OSOCTET* data, const char* conn,
444  char* buffer, OSSIZE bufferSize);
445 
452 EXTERNRT int rtPrintToStringOpenTypeExt (const char* name,
453  const OSRTDList* pElemList, char* buffer, OSSIZE bufferSize);
454 
460 EXTERNRT int rtPrintToString
461  (const char* namebuf, char* buffer, OSSIZE bufSize);
462 
475 EXTERNRT int rtPrintToStringHexStr
476 (const char* name, OSSIZE numocts, const OSOCTET* data, char* buffer,
477  OSSIZE bufSize);
478 
491 (const char* name, const Asn116BitCharString* bstring, char* buffer,
492  OSSIZE bufSize);
493 
505 EXTERNRT int rtPrintToStringUnivCharStr (const char* name,
506  const Asn132BitCharString* bstring, char* buffer, OSSIZE bufSize);
507 
508 #ifndef __SYMBIAN32__
509 
519 (const char* name, const OSRTDList* pElemList, char* buffer, OSSIZE bufSize);
520 
526 EXTERNRT int rtPrintToStringIndent (char* buffer, OSSIZE bufSize);
527 
531 EXTERNRT void rtPrintToStringResetIndent(OSVOIDARG);
532 
536 EXTERNRT void rtPrintToStringIncrIndent(OSVOIDARG);
537 
541 EXTERNRT void rtPrintToStringDecrIndent (OSVOIDARG);
542 
549 EXTERNRT int rtPrintToStringCloseBrace (char* buffer, OSSIZE bufSize);
550 
557 EXTERNRT int rtPrintToStringOpenBrace
558 (const char*, char* buffer, OSSIZE bufSize);
559 
560 #endif
561 
565 #ifdef __cplusplus
566 }
567 #endif
568 #endif
int rtPrintToString(const char *namebuf, char *buffer, OSSIZE bufSize)
void rtPrintToStringResetIndent(OSVOIDARG)
int rtPrintToStringText(const char *name, OSSIZE numocts, const OSOCTET *data, char *buffer, OSSIZE bufferSize)
int rtPrintToStringOID2(const char *name, OSSIZE numids, const OSUINT32 *subidArray, char *buffer, OSSIZE bufferSize)
Definition: asn1type.h:1052
int rtPrintToStringOID64Value(const ASN1OID64 *pOID, char *buffer, OSSIZE bufferSize)
int rtPrintToStringHexStr(const char *name, OSSIZE numocts, const OSOCTET *data, char *buffer, OSSIZE bufSize)
int rtPrintToStringIndent(char *buffer, OSSIZE bufSize)
void rtPrintToStringDecrIndent(OSVOIDARG)
int rtPrintToStringOpenTypeExt(const char *name, const OSRTDList *pElemList, char *buffer, OSSIZE bufferSize)
int rtPrintToStringTBCDStr(const char *name, OSSIZE numocts, const OSOCTET *data, char *buffer, OSSIZE bufferSize)
int rtPrintToStringOID(const char *name, const ASN1OBJID *pOID, char *buffer, OSSIZE bufferSize)
Definition: rtxDList.h:64
int rtPrintToStringBitStrBin(const char *name, OSSIZE numbits, const OSOCTET *data, const char *conn, char *buffer, OSSIZE bufferSize)
Definition: asn1type.h:275
int rtPrintToStringBitStrExt(const char *name, OSSIZE numbits, const OSOCTET *data, OSSIZE dataSize, const OSOCTET *extdata, const char *conn, char *buffer, OSSIZE bufferSize)
Definition: asn1type.h:301
int rtPrintToStringOctStr(const char *name, OSSIZE numocts, const OSOCTET *data, const char *conn, char *buffer, OSSIZE bufferSize)
int rtPrintToStringCloseBrace(char *buffer, OSSIZE bufSize)
int rtPrintToStringBitStrBraceTextExt(const char *name, OSSIZE numbits, const OSOCTET *data, OSSIZE dataSize, const OSOCTET *extdata, char *buffer, OSSIZE bufferSize)
int rtPrintToStringDateTime(const char *name, OSNumDateTime *pDateTime, char *buffer, OSSIZE bufferSize)
int rtPrintToStringInteger(const char *name, OSINT32 value, char *buffer, OSSIZE bufferSize)
int rtPrintToStringBoolean(const char *name, OSBOOL value, char *buffer, OSSIZE bufferSize)
int rtPrintToStringUnivCharStr(const char *name, const Asn132BitCharString *bstring, char *buffer, OSSIZE bufSize)
int rtPrintToStringOpenBrace(const char *, char *buffer, OSSIZE bufSize)
int rtPrintToStringInt64(const char *name, OSINT64 value, char *buffer, OSSIZE bufferSize)
int rtPrintToStringCharStr(const char *name, const char *cstring, char *buffer, OSSIZE bufferSize)
int rtPrintToStringOpenType(const char *name, OSSIZE numocts, const OSOCTET *data, const char *conn, char *buffer, OSSIZE bufferSize)
int rtPrintToString16BitCharStr(const char *name, const Asn116BitCharString *bstring, const char *conn, char *buffer, OSSIZE bufferSize)
int rtPrintToStringReal(const char *name, OSREAL value, char *buffer, OSSIZE bufferSize)
int rtPrintToStringBitStr(const char *name, OSSIZE numbits, const OSOCTET *data, const char *conn, char *buffer, OSSIZE bufferSize)
Definition: asn1type.h:1064
int rtPrintToStringOpenTypeExtBraceText(const char *name, const OSRTDList *pElemList, char *buffer, OSSIZE bufSize)
int rtPrintToStringIpv6Addr(const char *name, OSSIZE numocts, const OSOCTET *data, char *buffer, OSSIZE bufferSize)
int rtPrintToStringBitStrNamed(const char *name, OSSIZE numbits, const OSOCTET *data, const char *conn, OSSIZE namedBits, const OSUINT32 positions[], const char *bitnames[], char *buffer, OSSIZE bufferSize)
int rtPrintToStringUInt64(const char *name, OSUINT64 value, char *buffer, OSSIZE bufferSize)
void rtPrintToStringIncrIndent(OSVOIDARG)
int rtPrintToStringOIDValue(const ASN1OBJID *pOID, char *buffer, OSSIZE bufferSize)
int rtPrintToStringOIDValue2(OSSIZE numids, const OSUINT32 *subidArray, char *buffer, OSSIZE bufferSize)
int rtPrintToStringUTF8Str(const char *name, const OSUTF8CHAR *ustring, char *buffer, OSSIZE bufferSize)
int rtPrintToStringUnsigned(const char *name, OSUINT32 value, char *buffer, OSSIZE bufferSize)
int rtPrintToStringOID64(const char *name, const ASN1OID64 *pOID, char *buffer, OSSIZE bufferSize)
int rtPrintToString32BitCharStr(const char *name, const Asn132BitCharString *bstring, const char *conn, char *buffer, OSSIZE bufferSize)
int rtPrintToStringUnicodeCharStr(const char *name, const Asn116BitCharString *bstring, char *buffer, OSSIZE bufSize)
int rtPrintToStringBitStrBraceText(const char *name, OSSIZE numbits, const OSOCTET *data, char *buffer, OSSIZE bufferSize)
int rtPrintToStringBitStrNamedExt(const char *name, OSSIZE numbits, const OSOCTET *data, OSSIZE dataSize, const OSOCTET *extdata, const char *conn, OSSIZE namedBits, const OSUINT32 positions[], const char *bitnames[], char *buffer, OSSIZE bufferSize)
int rtPrintToStringOIDStr(const char *name, const char *pOID, char *buffer, OSSIZE bufferSize)
int rtPrintToStringIpv4Addr(const char *name, OSSIZE numocts, const OSOCTET *data, char *buffer, OSSIZE bufferSize)