Example #1
0
 public GenRequest Stream()
 {
     using (var memoryStream = new MemoryStream(PseudoMessageBenchmarks.Payload))
     {
         return(ZenserdesProtobuf.Deserialize <GenRequest>(memoryStream, LongRetention));
     }
 }
Example #2
0
 public GenRequest TryStream()
 {
     using (var memoryStream = new MemoryStream(PseudoMessageBenchmarks.Payload))
     {
         var success = ZenserdesProtobuf.TryDeserialize <GenRequest>(memoryStream, out var result, LongRetention);
         return(result);
     }
 }
Example #3
0
 public GenRequest Span()
 {
     return(ZenserdesProtobuf.Deserialize <GenRequest>(_payload.Span, LongRetention));
 }
Example #4
0
 public GenRequest Memory()
 {
     return(ZenserdesProtobuf.Deserialize <GenRequest>(_payload, LongRetention));
 }
Example #5
0
        public GenRequest TrySpan()
        {
            var success = ZenserdesProtobuf.TryDeserialize <GenRequest>(_payload.Span, out var result, LongRetention);

            return(result);
        }