I have two types and one function. One type is
char one[32]
The other type is
typedef union _DATA{
    UINT8 byte[32];
    INT8  iByte[32];
}DATA
The function gets DATA as input parameter,
void Compute(DATA data){}
Now, I have a char* (char[32]) type and I wish to convert it to DATA type and pass it as a parameter for Compute. Both types are 32Byte size, and I want a fast way to convert type.
I thought of memcpy,but it is slow since it copies the data.
Can I use pointer somehow to pass it char* as DATA type?
 
    