@Override protected void init(byte[] bytes, int length) { super.init(bytes, length); if (length >= getLength()) { ip = copyInt32FromBytes(bytes); } }
@Override protected void init(byte[] bytes, int length) { super.init(bytes, length); if (length >= getLength()) { message = copyStringFromBytes(bytes, CHAT_MESSAGE_LENGTH); nickName = copyStringFromBytes(bytes, NICK_NAME_LENGTH); } }
@Override protected void init(byte[] bytes, int length) { super.init(bytes, length); if (length >= getLength()) { group = copyStringFromBytes(bytes, GROUP_NAME_LENGTH); mac = copyMacFromBytes(bytes); } }
@Override protected void init(byte[] bytes, int length) { super.init(bytes, length); if (length >= getLength()) { nickName = copyStringFromBytes(bytes, NICK_NAME_LENGTH); mac = copyMacFromBytes(bytes); ip = copyInt32FromBytes(bytes); } }