Home > Support > Documentation

rtxPrint.h File Reference

#include <stdio.h>
#include "rtxsrc/osSysTypes.h"
#include "rtxsrc/rtxExternDefs.h"
#include "rtxsrc/rtxDList.h"

Go to the source code of this file.


Defines

#define OSRTINDENTSPACES   3

Functions

int rtxByteToHexChar (OSOCTET byte, char *buf, size_t bufsize)
 This function converts a byte value into its hex string equivalent.
void rtxPrintBoolean (const char *name, OSBOOL value)
 Prints a boolean value to stdout.
void rtxPrintDate (const char *name, const OSNumDateTime *pvalue)
 Prints a date value to stdout.
void rtxPrintTime (const char *name, const OSNumDateTime *pvalue)
 Prints a time value to stdout.
void rtxPrintDateTime (const char *name, const OSNumDateTime *pvalue)
 Prints a dateTime value to stdout.
void rtxPrintInteger (const char *name, OSINT32 value)
 Prints an integer value to stdout.
void rtxPrintInt64 (const char *name, OSINT64 value)
 Prints a 64-bit integer value to stdout.
void rtxPrintUnsigned (const char *name, OSUINT32 value)
 Prints an unsigned integer value to stdout.
void rtxPrintUInt64 (const char *name, OSUINT64 value)
 Prints an unsigned 64-bit integer value to stdout.
void rtxPrintHexStr (const char *name, OSUINT32 numocts, const OSOCTET *data)
 This function prints the value of a binary string in hex format to standard output.
void rtxPrintHexBinary (const char *name, OSUINT32 numocts, const OSOCTET *data)
 Prints an octet string value in hex binary format to stdout.
void rtxPrintCharStr (const char *name, const char *cstring)
 Prints an ASCII character string value to stdout.
void rtxPrintUTF8CharStr (const char *name, const OSUTF8CHAR *cstring)
 Prints a UTF-8 encoded character string value to stdout.
void rtxPrintUnicodeCharStr (const char *name, const OSUNICHAR *str, int nchars)
 This function prints a Unicode string to standard output.
void rtxPrintReal (const char *name, OSREAL value)
 Prints a REAL (float, double, decimal) value to stdout.
void rtxPrintNull (const char *name)
 Prints a NULL value to stdout.
void rtxPrintNVP (const char *name, const OSUTF8NVP *value)
 Prints a name-value pair to stdout.
int rtxPrintFile (const char *filename)
 This function prints the contents of a text file to stdout.
void rtxPrintIndent (void)
 This function prints indentation spaces to stdout.
void rtxPrintIncrIndent (void)
 This function increments the current indentation level.
void rtxPrintDecrIndent (void)
 This function decrements the current indentation level.
void rtxPrintCloseBrace (void)
 This function closes a braced region by decreasing the indent level, printing indent spaces, and printing the closing brace.
void rtxPrintOpenBrace (const char *)
 This function opens a braced region by printing indent spaces, printing the name and opening brace, and increasing the indent level.
void rtxHexDumpToFile (FILE *fp, const OSOCTET *data, OSUINT32 numocts)
 This function outputs a hexadecimal dump of the current buffer contents to a file.
void rtxHexDumpToFileEx (FILE *fp, const OSOCTET *data, OSUINT32 numocts, int bytesPerUnit)
 This function outputs a hexadecimal dump of the current buffer to a file, but it may output the dump as an array of bytes, words, or double words.
void rtxHexDump (const OSOCTET *data, OSUINT32 numocts)
 This function outputs a hexadecimal dump of the current buffer contents to stdout.
void rtxHexDumpEx (const OSOCTET *data, OSUINT32 numocts, int bytesPerUnit)
 This function outputs a hexadecimal dump of the current buffer contents to stdout, but it may display the dump as an array or bytes, words, or double words.
int rtxHexDumpToString (const OSOCTET *data, OSUINT32 numocts, char *buffer, int bufferIndex, int bufferSize)
 This function formats a hexadecimal dump of the current buffer contents to a string.
int rtxHexDumpToStringEx (const OSOCTET *data, OSUINT32 numocts, char *buffer, int bufferIndex, int bufferSize, int bytesPerUnit)
 This function formats a hexadecimal dump of the current buffer contents to a string, but it may output the dump as an array of bytes, words, or double words.

Detailed Description

Definition in file rtxPrint.h.