[Solved] iOS:convert hex data to integer format


Define a struct with all the correct types and order. Point the struct to the data. Then just access the items via the struct elements. Be careful with the types, it is probably best to use well defined types such as int8_t, uint8_t, uint16_t, int16_t, etc to insure the correct element size. You will want a “packed” struct, not alligned to the CPU alignment size.

solved iOS:convert hex data to integer format