(m proto.Message)
| 93 | } |
| 94 | |
| 95 | func (s *stringSink) SetProto(m proto.Message) error { |
| 96 | b, err := proto.Marshal(m) |
| 97 | if err != nil { |
| 98 | return err |
| 99 | } |
| 100 | s.v.b = b |
| 101 | *s.sp = string(b) |
| 102 | return nil |
| 103 | } |
| 104 | |
| 105 | // ByteViewSink returns a Sink that populates a ByteView. |
| 106 | func ByteViewSink(dst *ByteView) Sink { |
nothing calls this directly
no outgoing calls
no test coverage detected