MCPcopy Create free account
hub / github.com/apple/coremltools / Read

Method Read

deps/protobuf/csharp/src/Google.Protobuf/FieldCodec.cs:850–861  ·  view source on GitHub ↗

Reads a value of the codec type from the given . The input stream to read from. The value read from the stream.

(CodedInputStream input)

Source from the content-addressed store, hash-verified

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"/>.

Callers 4

ReadMethod · 0.45
ReadMapEntryMethod · 0.45
CopyToMethod · 0.45

Calls 2

InitializeMethod · 0.45
CopyStateToMethod · 0.45

Tested by

no test coverage detected