// Show 'long' data type void show_long_long(long long data) { // printf("[%ld: long] - ", data); show_bytes((byte_pointer) &data, sizeof(long long)); }
static QString show_bytes1(const QByteArray& arr, int base, int bytes_per_line, QString delimer) { return show_bytes(arr, base, bytes_per_line, delimer, QString("\r\n")); }
// Show 'double' data type void show_double(double data) { // printf("[%g: double] - ", data); show_bytes((byte_pointer) &data, sizeof(double)); }
void show_pointer(void *x) { show_bytes((byte_pointer) &x, sizeof(void *)); }
void show_long(long x) { show_bytes((byte_pointer) &x, sizeof(long)); }
void show_float(float start) { printf("show_float...\n"); show_bytes((byte_pointer) &start, sizeof(float)); }
void show_int(int x) { show_bytes((byte_pointer) &x, sizeof(int)); }
void show_pointer(void *x) { show_bytes((byte_pointer) &x, sizeof(void *)); //line:data:show_bytes_amp3 }
void string_ueg() { /* $begin show-ustring */ const char *s = "ABCDEF"; show_bytes((byte_pointer) s, strlen(s)); /* $end show-ustring */ }
void show_int(int x) { show_bytes((byte_pointer) &x, sizeof(int)); //line:data:show_bytes_amp1 }
void show_float(float x) { show_bytes((byte_pointer) &x, sizeof(float)); //line:data:show_bytes_amp2 }
int show_float(float x){ show_bytes((byte_pointer) &x, sizeof(float)); return 0; }
int show_int(int x){ show_bytes((byte_pointer) &x, sizeof(int)); return 0; }
int main(){ test_show_bytes(0x12345); const char *s="abcdef"; show_bytes((byte_pointer)s,strlen(s)); }
void show_pointer(void *start) { printf("show_pointer...\n"); show_bytes((byte_pointer) &start, sizeof(void *)); }
void string_leg() { /* $begin show-lstring */ const char *s = "abcdef"; show_bytes((byte_pointer) s, strlen(s)); /* $end show-lstring */ }
void show_int(int start) { printf("show_int... %d\n", start); show_bytes((byte_pointer) &start, sizeof(int)); }
// Show 'int' data type void show_int(int data) { // printf("[%d: int] - ", data); show_bytes((byte_pointer) &data, sizeof(int)); }
void show_pointer(void *pointer) { show_bytes((byte_pointer) &pointer, sizeof(void *)); }
// Show 'float' data type void show_float(float data) { // printf("[%.f: float] - ", data); show_bytes((byte_pointer) &data, sizeof(float)); }
void show_float(float x) { show_bytes((byte_pointer) &x, sizeof(float)); }
// Show 'void' data type void show_pointer(void *data) { // printf("[%d: void *] - ", (int)data); show_bytes((byte_pointer) &data, sizeof(void *)); }
/* new functions */ void show_short(short x) { show_bytes((byte_pointer) &x, sizeof(short)); }
// Show 'short' data type void show_short(short data) { // printf("[%d: short] - ", data); show_bytes((byte_pointer) &data, sizeof(short)); }
void show_double(double x) { show_bytes((byte_pointer) &x, sizeof(double)); }
void show_us(unsigned x){ show_bytes((byte_pointer) &x, sizeof(unsigned)); }