cmppterminaterepmessage.java
来自「华为CNGP.CMPP.SGIP.CMPP源代码。」· Java 代码 · 共 39 行
JAVA
39 行
package com.huawei.insa2.comm.cmpp.message;
import com.huawei.insa2.comm.cmpp.CMPPConstant;
import com.huawei.insa2.util.TypeConvert;
public class CMPPTerminateRepMessage extends CMPPMessage {
public CMPPTerminateRepMessage() {
int len = 12;
super.buf = new byte[len];
TypeConvert.int2byte(len, super.buf, 0);
TypeConvert.int2byte(CMPPConstant.Terminate_Rep_Command_Id, super.buf,
4);
}
public CMPPTerminateRepMessage(byte buf[]) throws IllegalArgumentException {
if (buf.length != 4) {
throw new IllegalArgumentException(CMPPConstant.SMC_MESSAGE_ERROR);
}
int len = 12;
super.buf = new byte[len];
TypeConvert.int2byte(len, super.buf, 0);
System.arraycopy(buf, 0, super.buf, 8, 4);
super.sequence_Id = TypeConvert.byte2int(buf, 0);
}
public String toString() {
String tmpStr = "CMPP_Terminate_REP: ";
tmpStr = tmpStr + "Sequence_Id=" + getSequenceId();
return tmpStr;
}
public int getCommandId() {
return CMPPConstant.Terminate_Rep_Command_Id;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?