6 #define RZ_LANG_BYTE_ARRAY_TRUNK_SIZE 16
7 #define RZ_LANG_BYTE_ARRAY_TRUNK_SIZE_STR "16"
37 const char *hex_c, *hex_e;
38 size_t n_bits = n_bytes * 8;
45 hex_e =
" 0x%04" PFMT64x "\n};";
51 hex_e =
" 0x%08" PFMT64x "u\n};";
56 hex_c =
" 0x%016" PFMT64x "ull,";
57 hex_e =
" 0x%016" PFMT64x "ull\n};";
63 hex_e =
" 0x%02" PFMT64x "\n};";
68 if (
size < 1 && n_bytes != 1) {
73 for (
size_t pos = 0, n_print = 0;
pos <
size;
pos += n_bytes, n_print++) {
74 if (n_print > 0 && !(n_print % max_print)) {
RZ_API void Ht_() free(HtName_(Ht) *ht)
static char * lang_byte_array_json(const ut8 *buffer, size_t size)
static void lang_byte_array_asm(RzStrBuf *sb, const ut8 *buffer, size_t size)
static void lang_byte_array_nodejs(RzStrBuf *sb, const ut8 *buffer, size_t size)
static void lang_byte_array_c_cpp(RzStrBuf *sb, const ut8 *buffer, size_t size, size_t n_bytes, bool big_endian)
#define RZ_LANG_BYTE_ARRAY_TRUNK_SIZE_STR
#define RZ_LANG_BYTE_ARRAY_TRUNK_SIZE
static void lang_byte_array_objective_c_cpp(RzStrBuf *sb, const ut8 *buffer, size_t size)
static void lang_byte_array_rizin(RzStrBuf *sb, const ut8 *buffer, size_t size)
static void lang_byte_array_kotlin(RzStrBuf *sb, const ut8 *buffer, size_t size)
static void lang_byte_array_bash(RzStrBuf *sb, const ut8 *buffer, size_t size)
static void lang_byte_array_golang(RzStrBuf *sb, const ut8 *buffer, size_t size)
static void lang_byte_array_java(RzStrBuf *sb, const ut8 *buffer, size_t size)
void * calloc(size_t number, size_t size)
#define rz_warn_if_reached()
#define rz_return_val_if_fail(expr, val)
RZ_API size_t rz_base64_encode(char *bout, const ut8 *bin, size_t sz)
static ut64 rz_read_ble(const void *src, bool big_endian, int size)
RZ_API RZ_OWN char * rz_lang_byte_array(RZ_NONNULL const ut8 *buffer, size_t size, RzLangByteArrayType type)
@ RZ_LANG_BYTE_ARRAY_C_CPP_BYTES
@ RZ_LANG_BYTE_ARRAY_JAVA
@ RZ_LANG_BYTE_ARRAY_BASH
@ RZ_LANG_BYTE_ARRAY_C_CPP_DOUBLEWORDS_BE
@ RZ_LANG_BYTE_ARRAY_KOTLIN
@ RZ_LANG_BYTE_ARRAY_C_CPP_WORDS_BE
@ RZ_LANG_BYTE_ARRAY_RIZIN
@ RZ_LANG_BYTE_ARRAY_GOLANG
@ RZ_LANG_BYTE_ARRAY_PYTHON
@ RZ_LANG_BYTE_ARRAY_C_CPP_WORDS_LE
@ RZ_LANG_BYTE_ARRAY_C_CPP_DOUBLEWORDS_LE
@ RZ_LANG_BYTE_ARRAY_OBJECTIVE_C
@ RZ_LANG_BYTE_ARRAY_YARA
@ RZ_LANG_BYTE_ARRAY_SWIFT
@ RZ_LANG_BYTE_ARRAY_C_CPP_HALFWORDS_BE
@ RZ_LANG_BYTE_ARRAY_RUST
@ RZ_LANG_BYTE_ARRAY_JSON
@ RZ_LANG_BYTE_ARRAY_NODEJS
@ RZ_LANG_BYTE_ARRAY_C_CPP_HALFWORDS_LE
enum rz_lang_byte_array_type_t RzLangByteArrayType
RZ_API char * pj_drain(PJ *j)
RZ_API PJ * pj_end(PJ *j)
RZ_API PJ * pj_i(PJ *j, int d)
RZ_API RZ_OWN char * rz_strbuf_drain_nofree(RzStrBuf *sb)
RZ_API bool rz_strbuf_append(RzStrBuf *sb, const char *s)
RZ_API void rz_strbuf_fini(RzStrBuf *sb)
RZ_API bool rz_strbuf_appendf(RzStrBuf *sb, const char *fmt,...) RZ_PRINTF_CHECK(2
RZ_API void rz_strbuf_init(RzStrBuf *sb)
ut64(WINAPI *w32_GetEnabledXStateFeatures)()