示例#1
0
 public int __decode(byte[] binData, ref int pos)
 {
     this.retCode = Proto4z.BaseProtoObject.decodeUI16(binData, ref pos);
     this.msgs    = new ChatInfoArray();
     this.msgs.__decode(binData, ref pos);
     return(pos);
 }
示例#2
0
        public System.Collections.Generic.List <byte> __encode()
        {
            var data = new System.Collections.Generic.List <byte>();

            data.AddRange(Proto4z.BaseProtoObject.encodeUI16(retCode));
            if (msgs == null)
            {
                msgs = new ChatInfoArray();
            }
            data.AddRange(msgs.__encode());
            return(data);
        }
示例#3
0
 public ChatNotice(ushort retCode, ChatInfoArray msgs)
 {
     this.retCode = retCode;
     this.msgs    = msgs;
 }
示例#4
0
 public ChatNotice()
 {
     retCode = 0;
     msgs    = new ChatInfoArray();
 }