pfun

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL