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

Method Marshal

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

Source from the content-addressed store, hash-verified

92}
93
94func (c *errProtoCodec) Marshal(v any) (mem.BufferSlice, error) {
95 if c.encodingErr != nil {
96 return nil, c.encodingErr
97 }
98 return encoding.GetCodecV2(proto.Name).Marshal(v)
99}
100
101func (c *errProtoCodec) Unmarshal(data mem.BufferSlice, v any) error {
102 if c.decodingErr != nil {

Callers

nothing calls this directly

Calls 2

GetCodecV2Function · 0.92
MarshalMethod · 0.65

Tested by

no test coverage detected