MCPcopy Create free account
hub / github.com/OpenPrinting/goipp / DecodeEx

Method DecodeEx

message.go:238–246  ·  view source on GitHub ↗

DecodeEx reads message from io.Reader It is extended version of the Decode method, with additional DecoderOptions parameter

(in io.Reader, opt DecoderOptions)

Source from the content-addressed store, hash-verified

236// It is extended version of the Decode method, with additional
237// DecoderOptions parameter
238func (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
249func (m *Message) DecodeBytes(data []byte) error {

Callers 2

DecodeMethod · 0.95
DecodeBytesExMethod · 0.95

Calls 2

ResetMethod · 0.95
decodeMethod · 0.95

Tested by

no test coverage detected