(encode encodeFunc)
| 832 | } |
| 833 | |
| 834 | func constructInlineValueEncodeFunc(encode encodeFunc) encodeFunc { |
| 835 | return func(e encoder, b []byte, p unsafe.Pointer) ([]byte, error) { |
| 836 | return encode(e, b, noescape(unsafe.Pointer(&p))) |
| 837 | } |
| 838 | } |
| 839 | |
| 840 | // noescape hides a pointer from escape analysis. noescape is |
| 841 | // the identity function but escape analysis doesn't think the |
no test coverage detected
searching dependent graphs…