MCPcopy
hub / github.com/golang/protobuf / Unmarshal

Method Unmarshal

jsonpb/decode.go:68–70  ·  view source on GitHub ↗

Unmarshal unmarshals a JSON object from r into m.

(r io.Reader, m proto.Message)

Source from the content-addressed store, hash-verified

66
67// Unmarshal unmarshals a JSON object from r into m.
68func (u *Unmarshaler) Unmarshal(r io.Reader, m proto.Message) error {
69 return u.UnmarshalNext(json.NewDecoder(r), m)
70}
71
72// UnmarshalNext unmarshals the next JSON object from d into m.
73func (u *Unmarshaler) UnmarshalNext(d *json.Decoder, m proto.Message) error {

Callers 1

Implementers 3

Bufferproto/buffer.go
InternalMessageInfoproto/deprecated.go
Unmarshalerjsonpb/decode.go

Calls 1

UnmarshalNextMethod · 0.95

Tested by 1