Search:

Type: Posts; User: Salem

Search: Search took 0.45 seconds.

  1. > Yep, just point a double* to the base of the 8...

    > Yep, just point a double* to the base of the 8 byte char array and dereference it.
    Better watch out for those alignment exceptions then, if such a pointer were to be mis-aligned for a double.
  2. So long as your 8 bytes are in the correct byte...

    So long as your 8 bytes are in the correct byte order for the endian of your machine, then you can do


    memcpy( &myDouble, mybuffer, sizeof(myDouble) );

    But you're making a few assumptions by...
Results 1 to 2 of 2