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