MCPcopy Create free account
hub / github.com/kataras/iris / Unmarshal

Method Unmarshal

sessions/transcoding.go:114–122  ·  view source on GitHub ↗

Unmarshal parses the gob-encoded data "b" and stores the result in the value pointed to by "outPtr".

(b []byte, outPtr interface{})

Source from the content-addressed store, hash-verified

112// Unmarshal parses the gob-encoded data "b" and stores the result
113// in the value pointed to by "outPtr".
114func (GobTranscoder) Unmarshal(b []byte, outPtr interface{}) error {
115 dec := gob.NewDecoder(bytes.NewBuffer(b))
116
117 if v, ok := outPtr.(reflect.Value); ok {
118 return dec.DecodeValue(v)
119 }
120
121 return dec.Decode(outPtr)
122}

Callers

nothing calls this directly

Calls 1

DecodeMethod · 0.65

Tested by

no test coverage detected