//bzero((void *)((int)ptr + ptr->len), (size_t)(len - ptr->len));
ptr->len = offset;
ptr->crc32 = crc32buf((void *) &(ptr->flag_version), ptr->len - offsetof(struct trx_header, flag_version));
//bzero((void *)((int)ptr + ptr->len), (size_t)(len - ptr->len));
ptr->len = offset;
ptr->crc32 = crc32buf((void *) &(ptr->flag_version), ptr->len - offsetof(struct trx_header, flag_version));