I have a translator related question, One of the members of my native structure is a 8-byte array. In the equivalent D struct, this member is represented as an uint64_t. It is preferable to convert the byte-array to an uint64_t in the translator. Is this possible?

i.e.  I am looking for an equivalent to the following C program
uint64_t result = 0;
char str[256] ;

snprintf(str, 256, "%x%x%x%x%x%x%x%x",
           ba[0], ba[1], ba[2], ba[3], ba[4], ba[5], ba[6], ba[7]);
result = strtoull((char *)ba, NULL, 16);

Any suggestion is appreciated

thanks
Priya







_______________________________________________
dtrace-discuss mailing list
[email protected]

Reply via email to