FreeRDP
Loading...
Searching...
No Matches
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
34extern "C"
35{
36#endif
37
38 WINPR_API void winpr_HexDump(const char* tag, UINT32 level, const void* data, size_t length);
39 WINPR_API void winpr_HexLogDump(wLog* log, UINT32 level, const void* data, size_t length);
40 WINPR_API void winpr_CArrayDump(const char* tag, UINT32 level, const void* data, size_t length,
41 size_t width);
42
43 WINPR_ATTR_MALLOC(free, 1)
44 WINPR_API char* winpr_BinToHexString(const BYTE* data, size_t length, BOOL space);
45 WINPR_API size_t winpr_BinToHexStringBuffer(const BYTE* data, size_t length, char* dstStr,
46 size_t dstSize, BOOL space);
47
48 WINPR_API size_t winpr_HexStringToBinBuffer(const char* str, size_t strLength, BYTE* data,
49 size_t dataLength);
50
51#ifdef __cplusplus
52}
53#endif
54
55#endif /* WINPR_UTILS_PRINT_H */