MCPcopy Create free account
hub / github.com/segmentio/encoding / Message

Interface Message

proto/message.go:14–23  ·  view source on GitHub ↗

Message is an interface implemented by types that supported being encoded to and decoded from protobuf.

Source from the content-addressed store, hash-verified

12// Message is an interface implemented by types that supported being encoded to
13// and decoded from protobuf.
14type Message interface {
15 // Size is the size of the protobuf representation (in bytes).
16 Size() int
17
18 // Marshal writes the message to the byte slice passed as argument.
19 Marshal([]byte) error
20
21 // Unmarshal reads the message from the byte slice passed as argument.
22 Unmarshal([]byte) error
23}
24
25// RawMessage represents a raw protobuf-encoded message.
26type RawMessage []byte

Callers 23

messageSizeFuncOfFunction · 0.65
messageEncodeFuncOfFunction · 0.65
customSizeFuncOfFunction · 0.65
customEncodeFuncOfFunction · 0.65
alignedSizeFunction · 0.65
encodeFuncMapOfFunction · 0.65
decodeFuncMapOfFunction · 0.65
TypeOfFunction · 0.65
messageEncodeFuncOfFunction · 0.65
mainFunction · 0.65
ExampleMarshalFunction · 0.65
ExampleIndentFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…