private final boolean validateClientPacket(ByteBuffer buf){
  return buf.getShort(0) == ~buf.getShort(3) && buf.get(2) == staticClientPacketCode;
}

private final boolean validateClientPacket ( ByteBuffer buf ) { return buf . getShort ( 0 ) == ~ buf . getShort ( 3 ) && buf . get ( 2 ) == staticClientPacketCode ; }
check if packet was correctly decoded , also check if packet was correctly coded by aion client
