(b []byte)
| 170 | } |
| 171 | |
| 172 | func (s *protoSink) SetBytes(b []byte) error { |
| 173 | err := proto.Unmarshal(b, s.dst) |
| 174 | if err != nil { |
| 175 | return err |
| 176 | } |
| 177 | s.v.b = cloneBytes(b) |
| 178 | s.v.s = "" |
| 179 | return nil |
| 180 | } |
| 181 | |
| 182 | func (s *protoSink) SetString(v string) error { |
| 183 | b := []byte(v) |
nothing calls this directly
no test coverage detected