FreeRDP
print.h
1 
20 #ifndef WINPR_UTILS_PRINT_H
21 #define WINPR_UTILS_PRINT_H
22 
23 #include <stdio.h>
24 #include <stdlib.h>
25 #include <stdarg.h>
26 
27 #include <winpr/winpr.h>
28 #include <winpr/wtypes.h>
29 #include <winpr/wlog.h>
30 
31 #define WINPR_HEXDUMP_LINE_LENGTH 16
32 
33 #ifdef __cplusplus
34 extern "C"
35 {
36 #endif
37 
38  WINPR_API void winpr_HexDump(const char* tag, UINT32 lvl, const void* data, size_t length);
39  WINPR_API void winpr_HexLogDump(wLog* log, UINT32 lvl, const void* data, size_t length);
40  WINPR_API void winpr_CArrayDump(const char* tag, UINT32 lvl, const void* data, size_t length,
41  size_t width);
42 
43  WINPR_API char* winpr_BinToHexString(const BYTE* data, size_t length, BOOL space);
44  WINPR_API size_t winpr_BinToHexStringBuffer(const BYTE* data, size_t length, char* dstStr,
45  size_t dstSize, BOOL space);
46 
47  WINPR_API size_t winpr_HexStringToBinBuffer(const char* str, size_t strLength, BYTE* data,
48  size_t dataLength);
49 
50 #ifdef __cplusplus
51 }
52 #endif
53 
54 #endif /* WINPR_UTILS_PRINT_H */