byte cmdtype = contentBuffer.get();
long playerId = contentBuffer.getLong();
int validateCode = contentBuffer.getInt();
byte[] msgbody = new byte[contentBuffer.remaining()];
contentBuffer.get(msgbody);
InputMessage msg = new InputMessage(cmdtype,playerId, validateCode, msgbody);