Documentation ¶ Index ¶ Constants func GetInt32(ptr unsafe.Pointer, offset uintptr) int32 func GetInt64(ptr unsafe.Pointer, offset uintptr) int64 func Ptr(i interface{}) unsafe.Pointer func SliceSize(ptr unsafe.Pointer) int type PtrFun func KindFun(v *reflect.Type) PtrFun Constants ¶ View Source const CpuSize = unsafe.Sizeof(&_i) // 预先计算出int指针的大小 Variables ¶ This section is empty. Functions ¶ func GetInt32 ¶ func GetInt32(ptr unsafe.Pointer, offset uintptr) int32 func GetInt64 ¶ func GetInt64(ptr unsafe.Pointer, offset uintptr) int64 func Ptr ¶ func Ptr(i interface{}) unsafe.Pointer func SliceSize ¶ func SliceSize(ptr unsafe.Pointer) int Types ¶ type PtrFun ¶ type PtrFun = func(pointer unsafe.Pointer, offset uintptr) unsafe.Pointer func KindFun ¶ func KindFun(v *reflect.Type) PtrFun Source Files ¶ View all Source files ptr.go type.go Click to show internal directories. Click to hide internal directories.