How to convert 64 bit int to binary presentation (big endian)? For reverse task I use these functions:

```
int readInt (struct str *buf) {
    buf -> cur_len = buf -> cur_len + 4;
    return 
    (((buf -> data[buf -> cur_len - 3 ] & 0xff) << 24) | 
    ((buf -> data[buf -> cur_len - 2 ] & 0xff) << 16) |
    ((buf -> data[buf -> cur_len - 1 ] & 0xff) <<  8) |
    ((buf -> data[buf -> cur_len ] & 0xff) <<  0));
};

long unsigned int 32Bit(struct str *buf) {  // 32
    return ((long unsigned int)readInt(buf)) & 0xffffffffL;
};

long unsigned int 64Bit(struct str *buffer) { //64
    long unsigned int result = 32Bit(buf);
    result *= 4294967296.0;
    return result;
}

```