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

Interface Marshaler

proto/proto.go:75–80  ·  proto/proto.go::Marshaler

Marshaler is implemented by messages that can marshal themselves. This interface is used by the following functions: Size, Marshal, Buffer.Marshal, and Buffer.EncodeMessage. Deprecated: Do not implement.

Source from the content-addressed store, hash-verified

73//
74// Deprecated: Do not implement.
75type Marshaler interface {
76 // Marshal formats the encoded bytes of the message.
77 // It should be deterministic and emit valid protobuf wire data.
78 // The caller takes ownership of the returned buffer.
79 Marshal() ([]byte, error)
80}
81
82// Unmarshaler is implemented by messages that can unmarshal themselves.
83// This interface is used by the following functions: Unmarshal, UnmarshalMerge,

Callers 18

discard_test.goFile · 0.65
marshalMethod · 0.65
MarshalTextFunction · 0.65
CompactTextFunction · 0.65
DebugPrintMethod · 0.65
overifyFunction · 0.65
TestRequiredBitFunction · 0.65
TestMarshalingNilFunction · 0.95
TestMarshalingFunction · 0.80
TestMarshalIllegalTimeFunction · 0.80

Implementers 6

TextMarshalerproto/text_encode.go
Bufferproto/buffer.go
InternalMessageInfoproto/deprecated.go
fakeMarshalerproto/proto_test.go
nonptrMessageproto/proto_test.go
Marshalerjsonpb/encode.go

Calls

no outgoing calls

Tested by

no test coverage detected