public PubackWrk(byte[] input) { this.puback = new Puback(); puback.length = input[0]; puback.messageType = input[1]; puback.topicId = new byte[2]; puback.messageId = new byte[2]; System.Buffer.BlockCopy(input, 2, puback.topicId, 0, 2); System.Buffer.BlockCopy(input, 4, puback.messageId, 0, 2); puback.ReturnCode = input[6]; }
public PubackWrk() { this.puback = new Puback(); puback.length = Convert.ToByte("07", 16); puback.messageType = Convert.ToByte("0D", 16); }