DecodeEx reads message from io.Reader It is extended version of the Decode method, with additional DecoderOptions parameter
(in io.Reader, opt DecoderOptions)
| 236 | // It is extended version of the Decode method, with additional |
| 237 | // DecoderOptions parameter |
| 238 | func (m *Message) DecodeEx(in io.Reader, opt DecoderOptions) error { |
| 239 | md := messageDecoder{ |
| 240 | in: in, |
| 241 | opt: opt, |
| 242 | } |
| 243 | |
| 244 | m.Reset() |
| 245 | return md.decode(m) |
| 246 | } |
| 247 | |
| 248 | // DecodeBytes decodes message from byte slice |
| 249 | func (m *Message) DecodeBytes(data []byte) error { |
no test coverage detected