DecodeBytesEx decodes message from byte slice It is extended version of the DecodeBytes method, with additional DecoderOptions parameter
(data []byte, opt DecoderOptions)
| 255 | // It is extended version of the DecodeBytes method, with additional |
| 256 | // DecoderOptions parameter |
| 257 | func (m *Message) DecodeBytesEx(data []byte, opt DecoderOptions) error { |
| 258 | return m.DecodeEx(bytes.NewBuffer(data), opt) |
| 259 | } |
| 260 | |
| 261 | // Print pretty-prints the message. The 'request' parameter affects |
| 262 | // interpretation of Message.Code: it is interpreted either |