Reads a value of the codec type from the given . The input stream to read from. The value read from the stream.
(CodedInputStream input)
| 848 | /// <param name="input">The input stream to read from.</param> |
| 849 | /// <returns>The value read from the stream.</returns> |
| 850 | public T Read(CodedInputStream input) |
| 851 | { |
| 852 | ParseContext.Initialize(input, out ParseContext ctx); |
| 853 | try |
| 854 | { |
| 855 | return ValueReader(ref ctx); |
| 856 | } |
| 857 | finally |
| 858 | { |
| 859 | ctx.CopyStateTo(input); |
| 860 | } |
| 861 | } |
| 862 | |
| 863 | /// <summary> |
| 864 | /// Reads a value of the codec type from the given <see cref="ParseContext"/>. |
no test coverage detected