I am sending a long long to a byte array with other stuff to a java server. When I convert the long back at the java end its not what I am expecting. I have tested the java converter but I ObjectiveC I thought that with it been low level would be as simple as this.
uint8_t *data = alloca(sizeof(longlong));
memcpy(&data[sizeof(Byte)+1],&theLong,sizeof(long long));
Is that right or am I on the wrong tracks?