示例#1
0
        void IContentEx.Write(IUpdateEncoder encoder, int offset)
        {
            var len = _content.Count;

            encoder.WriteLength(len);
            for (int i = offset; i < len; i++)
            {
                var jsonStr = Newtonsoft.Json.JsonConvert.SerializeObject(_content[i]);
                encoder.WriteString(jsonStr);
            }
        }
示例#2
0
文件: ContentAny.cs 项目: alex521/ycs
        void IContentEx.Write(IUpdateEncoder encoder, int offset)
        {
            int length = _content.Count;

            encoder.WriteLength(length - offset);

            for (int i = offset; i < length; i++)
            {
                var c = _content[i];
                encoder.WriteAny(c);
            }
        }
示例#3
0
 void IContentEx.Write(IUpdateEncoder encoder, int offset)
 {
     encoder.WriteLength(Length - offset);
 }
示例#4
0
文件: GC.cs 项目: alex521/ycs
 internal override void Write(IUpdateEncoder encoder, int offset)
 {
     encoder.WriteInfo(StructGCRefNumber);
     encoder.WriteLength(Length - offset);
 }