示例#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
        void IContentEx.Write(IUpdateEncoder encoder, int offset)
        {
            var sb = new StringBuilder(_content.Count - offset);

            for (int i = offset; i < _content.Count; i++)
            {
                sb.Append((char)_content[i]);
            }

            var str = sb.ToString();

            encoder.WriteString(str);
        }
示例#3
0
 void IContentEx.Write(IUpdateEncoder encoder, int offset)
 {
     // 32 digits separated by hyphens, no braces.
     encoder.WriteString(Doc.Guid);
     Opts.Write(encoder, offset);
 }