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

Method Marshal

encoding/encoding_test.go:278–281  ·  view source on GitHub ↗
(v any)

Source from the content-addressed store, hash-verified

276}
277
278func (p *countingProtoCodec) Marshal(v any) (mem.BufferSlice, error) {
279 atomic.AddInt32(&p.marshalCount, 1)
280 return encoding.GetCodecV2(proto.Name).Marshal(v)
281}
282
283func (p *countingProtoCodec) Unmarshal(data mem.BufferSlice, v any) error {
284 atomic.AddInt32(&p.unmarshalCount, 1)

Callers

nothing calls this directly

Calls 2

GetCodecV2Function · 0.92
MarshalMethod · 0.65

Tested by

no test coverage detected