Convert an array of uchar values into an 64bit unsigned integer.
It simply does an bitwise concatenation of the eight first values of the array into a single integer. It will do something like this, given an array of five uchar values {62, 28, 62, 28, 51}:
result: 0000000000000000000000000000000000000000000000000000000000000000 first byte: 00111110 (byte value 62) second byte: | 00011100 (byte value 28) third byte: | | 00111110 (byte value 62) fourth byte: | | | 00011100 (byte value 28) fifth byte: | | | | 00111101 (byte value 51) | | | | | result: 0011111000011100001111100001110000111101000000000000000000000000
- Parameters
-
ptr | The input value to convert. |
len | The length of the input array. |
- Returns
- The converted value.