示例#1
0
        public SubackWrk(byte[] input)
        {
            this.suback = new Suback();

            suback.length      = input[0];
            suback.messageType = input[1];
            suback.flags       = input[2];
            suback.topicId     = new byte[2];
            suback.messageId   = new byte[2];
            System.Buffer.BlockCopy(input, 3, suback.topicId, 0, 2);
            System.Buffer.BlockCopy(input, 5, suback.messageId, 0, 2);
            suback.ReturnCode = input[7];
        }
示例#2
0
 public SubackWrk()
 {
     this.suback        = new Suback();
     suback.length      = Convert.ToByte("08", 16);
     suback.messageType = Convert.ToByte("13", 16);
 }