(m proto.Message)
| 133 | } |
| 134 | |
| 135 | func (s *byteViewSink) SetProto(m proto.Message) error { |
| 136 | b, err := proto.Marshal(m) |
| 137 | if err != nil { |
| 138 | return err |
| 139 | } |
| 140 | *s.dst = ByteView{b: b} |
| 141 | return nil |
| 142 | } |
| 143 | |
| 144 | func (s *byteViewSink) SetBytes(b []byte) error { |
| 145 | *s.dst = ByteView{b: cloneBytes(b)} |
nothing calls this directly
no outgoing calls
no test coverage detected