M
muuh
Gast
hat jemand eine ahnung wie ich long in ein byte-array aumwandeln kann ohne, dass etwas verloren geht bzw. dann wieder zurückonvertieren?
Lg
muuh
Lg
muuh
long wert=0x12345678;//Dummy
byte[] buf=new byte[8];
for(int i=0;i<8;i++){
buf[i]=(byte) (wert>>>(i<<3));// Little Endian
// buf[7-i]=(byte) (wert>>>(i<<3));// Big Endian
}