Пример #1
0
        public void ReadExternal(IDataInput input)
        {
            int    size = input.ReadByte() << 24 | input.ReadByte() << 16 | input.ReadByte() << 8 | input.ReadByte();
            string json = Encoding.UTF8.GetString(input.ReadBytes(size));

            Data = JsonConvert.DeserializeObject <ClientSystemStatesNotificationDecoded>(json);
        }
Пример #2
0
 public void Read(IDataInput param1, ICommandLookup lookup)
 {
     this.size = param1.ReadInt();
     this.size = param1.Shift(this.size, 5);
     param1.ReadShort();
     this.code = param1.ReadBytes();
 }
Пример #3
0
        /// <summary>
        /// 读取一个字节数组.
        /// </summary>
        /// <param name="input">输入流对象.</param>
        /// <returns>对应的数据.</returns>
        public static byte[] ReadBytes(IDataInput input)
        {
            int len = (int)input.ReadUnsignedInt();

            byte[] bytes = new byte[len];
            input.ReadBytes(bytes, 0, len);
            return(bytes);
        }
        public void ReadExternal(IDataInput input)
        {
            int size = input.ReadByte() << 24 | input.ReadByte() << 16 | input.ReadByte() << 8 | input.ReadByte();
            string json=Encoding.UTF8.GetString(input.ReadBytes(size));

            Dictionary<string,object> d=Serializer.Deserialize<Dictionary<string,object>>(json);
            foreach (var kv in d)
            {
                this[kv.Key] = kv.Value;
            }
        }
Пример #5
0
        public void ReadExternal(IDataInput input)
        {
            int    size = input.ReadByte() << 24 | input.ReadByte() << 16 | input.ReadByte() << 8 | input.ReadByte();
            string json = Encoding.UTF8.GetString(input.ReadBytes(size));

            Dictionary <string, object> d = Serializer.Deserialize <Dictionary <string, object> >(json);

            foreach (var kv in d)
            {
                this[kv.Key] = kv.Value;
            }
        }
 public void Read(IDataInput param1, ICommandLookup lookup)
 {
     this.var_4280 = param1.ReadBytes();
 }
Пример #7
0
 public void Read(IDataInput param1, ICommandLookup lookup)
 {
     param1.ReadShort();
     param1.ReadShort();
     this.var_3596 = param1.ReadBytes();
 }