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

Method Marshal

proto/proto.go:79–79  ·  view source on GitHub ↗

Marshal formats the encoded bytes of the message. It should be deterministic and emit valid protobuf wire data. The caller takes ownership of the returned buffer.

()

Source from the content-addressed store, hash-verified

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.

Callers 15

discard_test.goFile · 0.65
marshalMethod · 0.65
MarshalTextFunction · 0.65
CompactTextFunction · 0.65
DebugPrintMethod · 0.65
overifyFunction · 0.65
TestRequiredBitFunction · 0.65
TestEncodeDecode1Function · 0.65
TestEncodeDecode2Function · 0.65
TestEncodeDecode3Function · 0.65
TestEncodeDecode4Function · 0.65

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 15

overifyFunction · 0.52
TestRequiredBitFunction · 0.52
TestEncodeDecode1Function · 0.52
TestEncodeDecode2Function · 0.52
TestEncodeDecode3Function · 0.52
TestEncodeDecode4Function · 0.52
TestEncodeDecode5Function · 0.52
TestEncodeDecode6Function · 0.52
TestBadWireTypeUnknownFunction · 0.52
TestProto1RepeatedGroupFunction · 0.52
TestEnumFunction · 0.52