Guest User

Untitled

a guest
Jul 15th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. // the argument is an array of 4 byte little-endian, I need the big-endian value
  2. private long grabTimestamp( byte[] parameters ) {
  3. long timestamp = ( 0xff & parameters[3] ) << 24 | ( 0xff & parameters[2] ) << 16 | ( 0xff & parameters[1] ) << 8 | ( 0xff & parameters[0] );
  4. return timestamp;
  5. }
Add Comment
Please, Sign In to add comment