コード例 #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();
 }