Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
to_str-int.h
1 /* to_str-int.h
2  * Definitions for utilities to convert various other types to strings.
3  *
4  * Wireshark - Network traffic analyzer
5  * By Gerald Combs <gerald@wireshark.org>
6  * Copyright 1998 Gerald Combs
7  *
8  * SPDX-License-Identifier: GPL-2.0-or-later
9  */
10 
11 #ifndef __TO_STR_INT_H__
12 #define __TO_STR_INT_H__
13 
14 #include <glib.h>
15 
26 char *word_to_hex_punct(char *out, guint16 word, char punct);
27 
37 char *word_to_hex_npad(char *out, guint16 word);
38 
49 char *dword_to_hex_punct(char *out, guint32 dword, char punct);
50 
60 char *qword_to_hex(char *out, guint64 qword);
61 
72 char *qword_to_hex_punct(char *out, guint64 qword, char punct);
73 
84 char *bytes_to_hexstr_punct(char *out, const guint8 *ad, guint32 len, char punct);
85 
95 char *oct_to_str_back(char *ptr, guint32 value);
96 
106 char *oct64_to_str_back(char *ptr, guint64 value);
107 
118 char *hex_to_str_back(char *ptr, int len, guint32 value);
119 
130 char *hex64_to_str_back(char *ptr, int len, guint64 value);
131 
141 char *uint64_to_str_back(char *ptr, guint64 value);
142 
153 char *uint_to_str_back_len(char *ptr, guint32 value, int len);
154 
165 char *uint64_to_str_back_len(char *ptr, guint64 value, int len);
166 
176 char *int_to_str_back(char *ptr, gint32 value);
177 
187 char *int64_to_str_back(char *ptr, gint64 value);
188 
189 #endif /* __TO_STR_INT_H__ */