Guest User

Untitled

a guest
Jan 13th, 2011
608
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Packet class is kx
  2.  
  3. 0x05 changed
  4. int, short, short, short
  5.  
  6. 0x13
  7. int, byte
  8.  
  9. 0x15 changed
  10. int, short, byte, short, int, int, int, byte, byte, byte
  11.  
  12. 0x18 changed
  13. int, byte, int, int, int, byte, byte, then INSANITY (defined below)
  14.  
  15. 0x19 new
  16. int, string, int, int, int, int
  17.  
  18. 0x28 new
  19. int, then INSANITY (defined below)
  20.  
  21. 0x36 new
  22. int, short, int, byte, byte
  23.  
  24. 0x67 changed
  25. byte, short, short, [byte, short]
  26.  
  27.  
  28. INSANITY:
  29.     int i = paramDataInputStream.readByte();
  30.  
  31.     while (i != 127)
  32.     {
  33.       if (localArrayList == null) {
  34.         localArrayList = new ArrayList();
  35.       }
  36.  
  37.       int j = (i & 0xE0) >> 5;
  38.       int k = i & 0x1F;
  39.  
  40.       b localb = null;
  41.       switch (j) {
  42.       case 0:
  43.         localb = new b(j, k, Byte.valueOf(paramDataInputStream.readByte()));
  44.         break;
  45.       case 1:
  46.         localb = new b(j, k, Short.valueOf(paramDataInputStream.readShort()));
  47.         break;
  48.       case 2:
  49.         localb = new b(j, k, Integer.valueOf(paramDataInputStream.readInt()));
  50.         break;
  51.       case 3:
  52.         localb = new b(j, k, Float.valueOf(paramDataInputStream.readFloat()));
  53.         break;
  54.       case 4:
  55.         localb = new b(j, k, paramDataInputStream.readUTF());
  56.         break;
  57.       case 5:
  58.         int m = paramDataInputStream.readShort();
  59.         int n = paramDataInputStream.readByte();
  60.         int i1 = paramDataInputStream.readShort();
  61.         localb = new b(j, k, new jl(m, n, i1));
  62.       }
  63.  
  64.       localArrayList.add(localb);
  65.  
  66.       i = paramDataInputStream.readByte();
  67.     }
RAW Paste Data