(t reflect.Type, c *codec)
| 29 | } |
| 30 | |
| 31 | func pointerEncodeFuncOf(t reflect.Type, c *codec) encodeFunc { |
| 32 | return func(b []byte, p unsafe.Pointer, flags flags) (int, error) { |
| 33 | if p != nil { |
| 34 | if !flags.has(inline) { |
| 35 | p = *(*unsafe.Pointer)(p) |
| 36 | } |
| 37 | return c.encode(b, p, flags.without(inline).with(wantzero)) |
| 38 | } |
| 39 | return 0, nil |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | func pointerDecodeFuncOf(t reflect.Type, c *codec) decodeFunc { |
| 44 | t = t.Elem() |
no test coverage detected
searching dependent graphs…