Rizin
unix-like reverse engineering framework and cli tools
rz_hex.h
Go to the documentation of this file.
1 #ifndef RZ_HEX_H
2 #define RZ_HEX_H
3 
4 #include <rz_types.h>
5 
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9 
10 RZ_API int rz_hex_pair2bin(const char *arg);
11 RZ_API int rz_hex_str2binmask(const char *in, ut8 *out, ut8 *mask);
12 RZ_API int rz_hex_str2bin(const char *in, ut8 *out);
13 RZ_API int rz_hex_bin2str(const ut8 *in, int len, char *out);
14 RZ_API void rz_hex_ut2st_str(const ut32 in, RZ_INOUT char *out, const int len);
15 RZ_API char *rz_hex_bin2strdup(const ut8 *in, int len);
17 RZ_API int rz_hex_str_is_valid(const char *s);
19 RZ_API char *rz_hex_from_c(const char *code);
20 RZ_API char *rz_hex_from_py(const char *code);
21 RZ_API char *rz_hex_from_code(const char *code);
22 RZ_API char *rz_hex_no_code(const char *code);
23 RZ_API char *rz_hex_from_py_str(char *out, const char *code);
24 RZ_API char *rz_hex_from_py_array(char *out, const char *code);
25 RZ_API char *rz_hex_from_c_str(char *out, const char **code);
26 RZ_API char *rz_hex_from_c_array(char *out, const char *code);
27 #ifdef __cplusplus
28 }
29 #endif
30 
31 #endif // RZ_HEX_H
size_t len
Definition: 6502dis.c:15
#define mask()
ut16 val
Definition: armass64_const.h:6
const lzma_allocator const uint8_t * in
Definition: block.h:527
const lzma_allocator const uint8_t size_t uint8_t * out
Definition: block.h:528
#define RZ_API
uint32_t ut32
uint8_t ut8
Definition: lh5801.h:11
int n
Definition: mipsasm.c:19
static RzSocket * s
Definition: rtr.c:28
RZ_API int rz_hex_str_is_valid(const char *s)
Definition: hex.c:549
RZ_API char * rz_hex_from_py_array(char *out, const char *code)
Definition: hex.c:42
RZ_API char * rz_hex_from_c_array(char *out, const char *code)
Definition: hex.c:177
RZ_API char * rz_hex_no_code(const char *code)
Definition: hex.c:317
RZ_API int rz_hex_str2bin(const char *in, ut8 *out)
Convert an input string in into the binary form in out.
Definition: hex.c:444
RZ_API bool rz_hex_to_byte(ut8 *val, ut8 c)
Definition: hex.c:10
RZ_API st64 rz_hex_bin_truncate(ut64 in, int n)
Definition: hex.c:525
RZ_API char * rz_hex_from_code(const char *code)
Definition: hex.c:342
RZ_API int rz_hex_pair2bin(const char *arg)
Definition: hex.c:360
RZ_API int rz_hex_bin2str(const ut8 *in, int len, char *out)
Definition: hex.c:382
RZ_API char * rz_hex_from_c(const char *code)
Definition: hex.c:214
RZ_API int rz_hex_str2binmask(const char *in, ut8 *out, ut8 *mask)
Definition: hex.c:490
RZ_API char * rz_hex_from_py(const char *code)
Definition: hex.c:76
RZ_API char * rz_hex_from_c_str(char *out, const char **code)
Definition: hex.c:106
RZ_API char * rz_hex_bin2strdup(const ut8 *in, int len)
Definition: hex.c:415
RZ_API void rz_hex_ut2st_str(const ut32 in, RZ_INOUT char *out, const int len)
Takes an unsigned 32bit integer with MSB set to 1 and returns the signed integer in hex format as str...
Definition: hex.c:405
RZ_API char * rz_hex_from_py_str(char *out, const char *code)
Definition: hex.c:23
#define RZ_INOUT
Definition: rz_types.h:52
#define st64
Definition: rz_types_base.h:10
#define c(i)
Definition: sha256.c:43
Definition: inftree9.h:24
ut64(WINAPI *w32_GetEnabledXStateFeatures)()