Exemplo n.º 1
0
 static void WriteBulkStringContent(IByteBufferAllocator allocator, IBulkStringRedisContent msg, List <object> output)
 {
     output.Add(msg.Content.Retain());
     if (msg is ILastBulkStringRedisContent)
     {
         output.Add(allocator.Buffer(RedisConstants.EndOfLineLength).WriteShort(RedisConstants.EndOfLineShort));
     }
 }
Exemplo n.º 2
0
        static void Write(IByteBufferAllocator allocator, IBulkStringRedisContent message, ICollection <object> output)
        {
            Contract.Requires(allocator != null);
            Contract.Requires(message != null);
            Contract.Requires(output != null);

            output.Add(message.Content.Retain());
            if (message is ILastBulkStringRedisContent)
            {
                output.Add(allocator
                           .Buffer(RedisConstants.EndOfLineLength)
                           .WriteShort(RedisConstants.EndOfLine));
            }
        }