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

Method Marshal

proto/buffer.go:109–113  ·  view source on GitHub ↗

Marshal appends the wire-format encoding of m to the buffer.

(m Message)

Source from the content-addressed store, hash-verified

107
108// Marshal appends the wire-format encoding of m to the buffer.
109func (b *Buffer) Marshal(m Message) error {
110 var err error
111 b.buf, err = marshalAppend(b.buf, m, b.deterministic)
112 return err
113}
114
115// Unmarshal parses the wire-format message in the buffer and
116// places the decoded results in m.

Calls 1

marshalAppendFunction · 0.85