(m proto.Message)
| 235 | } |
| 236 | |
| 237 | func (s *allocBytesSink) SetProto(m proto.Message) error { |
| 238 | b, err := proto.Marshal(m) |
| 239 | if err != nil { |
| 240 | return err |
| 241 | } |
| 242 | return s.setBytesOwned(b) |
| 243 | } |
| 244 | |
| 245 | func (s *allocBytesSink) SetBytes(b []byte) error { |
| 246 | return s.setBytesOwned(cloneBytes(b)) |
nothing calls this directly
no test coverage detected