payloadLength = readInt(); worldInfoCount = readChar(); worldInfoArray = new WorldInfo[worldInfoCount]; for (int i = 0; i < worldInfoCount; i++) { WorldInfo worldInfo = worldInfoArray[i] = new WorldInfo(); int k = readChar(); worldInfo.isMembers = (k & 0x8000) != 0; worldInfo.number = k & 0x7fff; worldInfo.locationString = readString(); worldInfo.players = readShort(); }