Hey,
I was hoping someone can help me convert a piece of php code, im not really sure where to start
pack( 'v', $test );
The pack php function above takes in an integer and converts it to an unsigned long.
V - unsigned long (always 32 bit, little endian byte order - is the php documentation of the function. But im told java stores as big endian? So any help on how to convert the integer to an unsigned little endian long would be helpful, i assume a simple type cast would convert to a big endian based number from java.
Integer y = 1;
long x = y.longValue();
The code i am trying but i assume the result is incorrect as java has no signed or unsigned and assumes all values to be signed and the java long is 64 bits not 32? Any guidance would be nice :)