📄 msgbind.java~73~
字号:
package SPAPI;public class MsgBind extends MsgHead{ private int Type; // 1 Integer String Name; // 16 Text String Password; // 16 Text String Reserve; // 8 Text public MsgBind(){ TotalLen = 61; CmdID = 0x1; Type = 0x1; Name = new String(); Password = new String(); Reserve = new String(); } public MsgBind(byte[] ba){ setHead(ba); Type = 0x1; Name = byte2str(ba, 21, 16); Password = byte2str(ba, 37, 16); Reserve = byte2str(ba, 53, 8); } public void print() { System.out.print("/"); printHead(); System.out.print("\n"); System.out.print("\\Type=" + Type); System.out.print(" Name=\"" + Name + "\""); System.out.print(" Password=\"" + Password + "\""); System.out.print(" Reserve=\"" + Reserve + "\""); System.out.print("\n"); } public byte[] getBytes() { byte[] r = new byte[61]; headFill(r); r[20] = (byte)(Type); str2byte(r, Name, 21, 16); str2byte(r, Password, 37, 16); str2byte(r, Reserve, 53, 8); return r; } public String getName() { return Name; } public void setName(String Name) { this.Name = Name; } public String getPassword() { return Password; } public void setPassword(String Password) { this.Password = Password; } public String getReserve() { return Reserve; } public void setReserve(String Reserve) { this.Reserve = Reserve; } public int getType() { return Type; } public void setType(int Type) { this.Type = Type; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -