type mremapMmapper … var mapper … func (m *mremapMmapper) Mremap(oldData []byte, newLength int, flags int) (data []byte, err error) { … } func Mremap(oldData []byte, newLength int, flags int) (data []byte, err error) { … } func MremapPtr(oldAddr unsafe.Pointer, oldSize uintptr, newAddr unsafe.Pointer, newSize uintptr, flags int) (ret unsafe.Pointer, err error) { … }