Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char[] len = new char[4];
- len[3] = (char)((msg.length() & 0xFF000000L) >> 24);
- len[2] = (char)((msg.length() & 0x00FF0000L) >> 16);
- len[1] = (char)((msg.length() & 0x0000FF00L) >> 8);
- len[0] = (char)((msg.length() & 0x000000FFL));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement