MCPcopy
hub / github.com/grpc/grpc-go / Unmarshal

Method Unmarshal

encoding/encoding_test.go:283–286  ·  view source on GitHub ↗
(data mem.BufferSlice, v any)

Source from the content-addressed store, hash-verified

281}
282
283func (p *countingProtoCodec) Unmarshal(data mem.BufferSlice, v any) error {
284 atomic.AddInt32(&p.unmarshalCount, 1)
285 return encoding.GetCodecV2(proto.Name).Unmarshal(data, v)
286}
287
288func (p *countingProtoCodec) Name() string {
289 return p.name

Callers

nothing calls this directly

Calls 2

GetCodecV2Function · 0.92
UnmarshalMethod · 0.65

Tested by

no test coverage detected