(v ByteView)
| 225 | } |
| 226 | |
| 227 | func (s *allocBytesSink) setView(v ByteView) error { |
| 228 | if v.b != nil { |
| 229 | *s.dst = cloneBytes(v.b) |
| 230 | } else { |
| 231 | *s.dst = []byte(v.s) |
| 232 | } |
| 233 | s.v = v |
| 234 | return nil |
| 235 | } |
| 236 | |
| 237 | func (s *allocBytesSink) SetProto(m proto.Message) error { |
| 238 | b, err := proto.Marshal(m) |
nothing calls this directly
no test coverage detected