func pointerToPkg(pkgptr *C.alpm_pkg_t) *Pkg { return &Pkg{ ptr: pkgptr, Name: C.GoString(C.alpm_pkg_get_name(pkgptr)), Version: C.GoString(C.alpm_pkg_get_version(pkgptr)), Description: C.GoString(C.alpm_pkg_get_desc(pkgptr)), InstallSize: int64(C.alpm_pkg_get_isize(pkgptr)), } }
func (pkg Package) ISize() int64 { t := C.alpm_pkg_get_isize(pkg.pmpkg) return int64(t) }