Example #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);
     }
 }
Example #2
0
        internal void WriteTo(SocketWriter writter)
        {
            writter.Write(RESPHeaders.Array);
            writter.WriteLine(_parts.Count.ToString());

            foreach (var item in _parts)
            {
                item.WriteTo(writter);
            }
        }