XBinder  Version 2.9.x
rtxHexDump.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 _RTXHEXDUMP_H_
28 #define _RTXHEXDUMP_H_
29 
30 #include "rtxsrc/rtxContext.h"
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
50 EXTERNRT int rtxByteToHexChar (OSOCTET byte, char* buf, OSSIZE bufsize);
51 
61 EXTERNRT int rtxByteToHexCharWithPrefix
62  (OSOCTET byte, char* buf, OSSIZE bufsize, const char* prefix);
63 
74 EXTERNRT int rtxHexDumpToNamedFile
75 (const char* filename, const OSOCTET* data, OSSIZE numocts);
76 
86 EXTERNRT void rtxHexDumpToFile
87 (FILE* fp, const OSOCTET* data, OSSIZE numocts);
88 
100 EXTERNRT void rtxHexDumpToFileEx
101 (FILE* fp, const OSOCTET* data, OSSIZE numocts, OSSIZE bytesPerUnit);
102 
115 EXTERNRT void rtxHexDumpToFileExNoAscii
116 (FILE* fp, const OSOCTET* data, OSSIZE numocts, OSSIZE bytesPerUnit);
117 
129 EXTERNRT int rtxHexDumpToNamedFileNoAscii
130 (const char* filename, const OSOCTET* data, OSSIZE numocts);
131 
139 EXTERNRT void rtxHexDump (const OSOCTET* data, OSSIZE numocts);
140 
151 EXTERNRT void rtxHexDumpEx
152 (const OSOCTET* data, OSSIZE numocts, OSSIZE bytesPerUnit);
153 
166 EXTERNRT int rtxHexDumpToString
167 (const OSOCTET* data, OSSIZE numocts, char* buffer, OSSIZE bufferIndex,
168  OSSIZE bufferSize);
169 
185 EXTERNRT int rtxHexDumpToStringEx
186 (const OSOCTET* data, OSSIZE numocts, char* buffer,
187  OSSIZE bufferIndex, OSSIZE bufferSize, OSSIZE bytesPerUnit);
188 
195 EXTERNRT int rtxHexDumpFileContents (const char* inFilePath);
196 
204 EXTERNRT int rtxHexDumpFileContentsToFile
205 (const char* inFilePath, const char* outFilePath);
206 
222 EXTERNRT char* rtxHexDiffToDynString
223 (OSCTXT* pctxt, const OSOCTET* pdata1, const OSOCTET* pdata2, OSSIZE numocts);
224 
228 #ifdef __cplusplus
229 }
230 #endif
231 
232 #endif
EXTERNRT void rtxHexDumpToFileEx(FILE *fp, const OSOCTET *data, OSSIZE numocts, OSSIZE bytesPerUnit)
This function outputs a hexadecimal dump of the current buffer to a file, but it may output the dump ...
EXTERNRT char * rtxHexDiffToDynString(OSCTXT *pctxt, const OSOCTET *pdata1, const OSOCTET *pdata2, OSSIZE numocts)
This function generates a differences report between two binary data buffers.
EXTERNRT void rtxHexDumpToFile(FILE *fp, const OSOCTET *data, OSSIZE numocts)
This function outputs a hexadecimal dump of the current buffer contents to a file.
EXTERNRT int rtxHexDumpToString(const OSOCTET *data, OSSIZE numocts, char *buffer, OSSIZE bufferIndex, OSSIZE bufferSize)
This function formats a hexadecimal dump of the current buffer contents to a string.
EXTERNRT void rtxHexDumpEx(const OSOCTET *data, OSSIZE numocts, OSSIZE 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.
EXTERNRT int rtxHexDumpToStringEx(const OSOCTET *data, OSSIZE numocts, char *buffer, OSSIZE bufferIndex, OSSIZE bufferSize, OSSIZE 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.
Common run-time context definitions.
EXTERNRT int rtxByteToHexCharWithPrefix(OSOCTET byte, char *buf, OSSIZE bufsize, const char *prefix)
This function converts a byte value into its hex string equivalent.
EXTERNRT int rtxHexDumpToNamedFile(const char *filename, const OSOCTET *data, OSSIZE numocts)
This function outputs a hexadecimal dump of the current buffer contents to the file with the given na...
EXTERNRT int rtxHexDumpFileContents(const char *inFilePath)
This function outputs a hexadecimal dump of the contents of the named file to stdout.
EXTERNRT int rtxByteToHexChar(OSOCTET byte, char *buf, OSSIZE bufsize)
This function converts a byte value into its hex string equivalent.
EXTERNRT int rtxHexDumpToNamedFileNoAscii(const char *filename, const OSOCTET *data, OSSIZE numocts)
This function outputs a hexadecimal dump of the current buffer contents to the file with the given na...
Run-time context structure.
Definition: rtxContext.h:198
EXTERNRT int rtxHexDumpFileContentsToFile(const char *inFilePath, const char *outFilePath)
This function outputs a hexadecimal dump of the contents of the named file to a text file...
EXTERNRT void rtxHexDumpToFileExNoAscii(FILE *fp, const OSOCTET *data, OSSIZE numocts, OSSIZE bytesPerUnit)
This function outputs a hexadecimal dump of the current buffer to a file, but it may output the dump ...
EXTERNRT void rtxHexDump(const OSOCTET *data, OSSIZE numocts)
This function outputs a hexadecimal dump of the current buffer contents to stdout.