diff options
author | systemcoder <systemcoder@protonmail.com> | 2020-03-21 20:27:58 +0000 |
---|---|---|
committer | systemcoder <systemcoder@protonmail.com> | 2020-03-21 20:27:58 +0000 |
commit | dea754a95c639fa3142e1c1b1b60a9a6500377e5 (patch) | |
tree | 4d96dd504fe25fd0d8d9a97bd170c67f111b2a0f /H64E-2/h64e.h | |
parent | bb47949b70525a266ebc9badae1e87496001389d (diff) | |
download | H64D-2-dea754a95c639fa3142e1c1b1b60a9a6500377e5.tar.gz H64D-2-dea754a95c639fa3142e1c1b1b60a9a6500377e5.zip |
Hex output for different column sizes and different data types is working
Diffstat (limited to 'H64E-2/h64e.h')
-rw-r--r-- | H64E-2/h64e.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/H64E-2/h64e.h b/H64E-2/h64e.h index 5b2b4c4..e1446ee 100644 --- a/H64E-2/h64e.h +++ b/H64E-2/h64e.h @@ -62,6 +62,8 @@ int h64e_init(H64E_t *s); int h64e_check_param( H64E_t *s ); int h64e_set_input(H64E_t *s, H64E_stream_in *sin); int h64e_set_output(H64E_t *s, H64E_stream_out *sout); +int h64e_data_sz(H64E_t *s); +int h64e_space_width(H64E_t *s); int h64e_convert(H64E_t *s); int h64e_destroy(H64E_t *s); @@ -96,10 +98,11 @@ typedef struct H64E_format { int h64e_fmt_init( H64E_format *fs); int h64e_fmt_byte( H64E_format *fs, uint8_t *in_data, int32_t in_size, uint8_t *out_data, int32_t out_size); int h64e_fmt_byte_align16( H64E_format *fs, uint8_t *in_data, int32_t in_size, uint8_t *out_data, int32_t out_size); -int h64e_fmt_word( H64E_format *fs, uint8_t *in_data, int32_t in_size, uint8_t *out_data, int32_t out_size); -int h64e_fmt_dword( H64E_format *fs, uint8_t *in_data, int32_t in_size, uint8_t *out_data, int32_t out_size); -int h64e_fmt_qword( H64E_format *fs, uint8_t *in_data, int32_t in_size, uint8_t *out_data, int32_t out_size); -int h64e_fmt_string( H64E_format *fs, uint8_t *in_data, int32_t in_size, uint8_t *out_data, int32_t out_size); +int h64e_fmt_align( H64E_format *fs, uint8_t *in_data, int32_t in_size, uint8_t *out_data, int32_t out_size, int32_t data_sz); int h64e_fmt_finish( H64E_format *fs); +int h64e_fmt_space(H64E_format *fs, uint8_t *out_data, int32_t out_size, int32_t data_sz, int32_t type); +int h64e_fmt_ascii(H64E_format *fs, uint8_t *in_data, int32_t in_size, uint8_t *out_data, int32_t out_size, int32_t data_sz); +int h64e_fmt_hex(H64E_format *fs, uint8_t *in_data, int32_t in_size, uint8_t *out_data, int32_t out_size, int32_t data_sz); + #endif /* h64e_h */ |