Marshal appends the wire-format encoding of m to the buffer.
(m Message)
| 107 | |
| 108 | // Marshal appends the wire-format encoding of m to the buffer. |
| 109 | func (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. |