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.
| 73 | // |
| 74 | // Deprecated: Do not implement. |
| 75 | type 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, |
no outgoing calls
no test coverage detected