Beispiel #1
0
// 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"));
}
Beispiel #3
0
// Show 'double' data type
void show_double(double data) {
    // printf("[%g: double] - ", data);
    show_bytes((byte_pointer) &data, sizeof(double));
}
Beispiel #4
0
void show_pointer(void *x) {
	show_bytes((byte_pointer) &x, sizeof(void *));
}
Beispiel #5
0
void show_long(long x) {
	show_bytes((byte_pointer) &x, sizeof(long));
}
Beispiel #6
0
void show_float(float start)
{
        printf("show_float...\n");
	show_bytes((byte_pointer) &start, sizeof(float));
}
Beispiel #7
0
void show_int(int x) {
	show_bytes((byte_pointer) &x, sizeof(int));
}
Beispiel #8
0
void show_pointer(void *x) {
    show_bytes((byte_pointer) &x, sizeof(void *)); //line:data:show_bytes_amp3
}
Beispiel #9
0
void string_ueg() {
/* $begin show-ustring */
const char *s = "ABCDEF";
show_bytes((byte_pointer) s, strlen(s)); 
/* $end show-ustring */
}
Beispiel #10
0
void show_int(int x) {
    show_bytes((byte_pointer) &x, sizeof(int)); //line:data:show_bytes_amp1
}
Beispiel #11
0
void show_float(float x) {
    show_bytes((byte_pointer) &x, sizeof(float)); //line:data:show_bytes_amp2
}
Beispiel #12
0
int show_float(float x){
    show_bytes((byte_pointer) &x, sizeof(float));
    return 0;
}
Beispiel #13
0
int show_int(int x){
    show_bytes((byte_pointer) &x, sizeof(int));
    return 0;
}
Beispiel #14
0
int main(){
    test_show_bytes(0x12345);
    const char *s="abcdef";
    show_bytes((byte_pointer)s,strlen(s));
}
Beispiel #15
0
void show_pointer(void *start)
{
        printf("show_pointer...\n");
	show_bytes((byte_pointer) &start, sizeof(void *));
}
Beispiel #16
0
void string_leg() {
/* $begin show-lstring */
const char *s = "abcdef";
show_bytes((byte_pointer) s, strlen(s)); 
/* $end show-lstring */
}
Beispiel #17
0
void show_int(int start)
{
        printf("show_int... %d\n", start);
	show_bytes((byte_pointer) &start, sizeof(int));
}
Beispiel #18
0
// Show 'int' data type
void show_int(int data) {
    // printf("[%d:    int] - ", data);
    show_bytes((byte_pointer) &data, sizeof(int));
}
Beispiel #19
0
void
show_pointer(void *pointer) {
    show_bytes((byte_pointer) &pointer, sizeof(void *));
}
Beispiel #20
0
// Show 'float' data type
void show_float(float data) {
    // printf("[%.f:  float] - ", data);
    show_bytes((byte_pointer) &data, sizeof(float));
}
Beispiel #21
0
void show_float(float x) {
	show_bytes((byte_pointer) &x, sizeof(float));
}
Beispiel #22
0
// Show 'void' data type
void show_pointer(void *data) {
    // printf("[%d: void *] - ", (int)data);
    show_bytes((byte_pointer) &data, sizeof(void *));
}
Beispiel #23
0
/* new functions */
void show_short(short x) {
	show_bytes((byte_pointer) &x, sizeof(short));
}
Beispiel #24
0
// Show 'short' data type
void show_short(short data) {
    // printf("[%d:  short] - ", data);
    show_bytes((byte_pointer) &data, sizeof(short));
}
Beispiel #25
0
void show_double(double x) {
	show_bytes((byte_pointer) &x, sizeof(double));
}
Beispiel #26
0
void show_us(unsigned x){
	show_bytes((byte_pointer) &x, sizeof(unsigned));
}