示例#1
0
 internal override void WriteTo(SocketWriter writer)
 {
     if (Value == null)
     {
         writer.Write(_empty);
     }
     else
     {
         writer.Write(RESPHeaders.BulkString);
         writer.WriteLine(_scount);
         writer.WriteLine(Value);
     }
 }
示例#2
0
        internal void WriteTo(SocketWriter writter)
        {
            writter.Write(RESPHeaders.Array);
            writter.WriteLine(_parts.Count.ToString());

            foreach (var item in _parts)
            {
                item.WriteTo(writter);
            }
        }
 internal override void WriteTo(SocketWriter writer)
 {
     writer.Write(_resp);
 }