github.com/philpearl/plenc@v0.0.15/unsafetricks.go (about) 1 package plenc 2 3 import "unsafe" 4 5 type eface struct { 6 rtype unsafe.Pointer 7 data unsafe.Pointer 8 } 9 10 func unpackEFace(obj interface{}) *eface { 11 return (*eface)(unsafe.Pointer(&obj)) 12 }