Message is an interface implemented by types that supported being encoded to and decoded from protobuf.
| 12 | // Message is an interface implemented by types that supported being encoded to |
| 13 | // and decoded from protobuf. |
| 14 | type 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. |
| 26 | type RawMessage []byte |
no outgoing calls
no test coverage detected
searching dependent graphs…