public MsPubAck(byte[] buf, int start, int end)
: base(buf, start, end) {
int ptr=start+2;
this.TopicId=(ushort)((buf[ptr++]<<8) | buf[ptr++]);
this.MessageId=(ushort)((buf[ptr++]<<8) | buf[ptr++]);
this.retCode=(MsReturnCode)buf[ptr];
this.ReqTyp=MsMessageType.PUBLISH;
}
public override byte[] GetBytes() {