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

Struct codecV0Bridge

codec.go:62–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60var _ baseCodec = codecV0Bridge{}
61
62type codecV0Bridge struct {
63 codec interface {
64 Marshal(v any) ([]byte, error)
65 Unmarshal(data []byte, v any) error
66 }
67}
68
69func (c codecV0Bridge) Marshal(v any) (mem.BufferSlice, error) {
70 data, err := c.codec.Marshal(v)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected