linkname

package
v2.15.2 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: MIT Imports: 7 Imported by: 0

README

Package linkname exports various private functions from the standard library using the //go:linkname directive.

DON'T USE THIS IF YOU DON'T KNOW WHAT IT IS.

Also, it is a bad practice to use private functions from other packages, and it is UNSAFE and not protected by the Go 1 compatibility promise.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetReflectTypeByName added in v2.15.1

func GetReflectTypeByName(name string) (reflect.Type, error)

func Pid

func Pid() int

Pid returns the id of current p.

func Reflect_ifaceIndir

func Reflect_ifaceIndir(rtype unsafe.Pointer) bool

func Reflect_maplen

func Reflect_maplen(m unsafe.Pointer) int

func Reflect_resolveTypeOff

func Reflect_resolveTypeOff(rtype unsafe.Pointer, off int32) unsafe.Pointer

func Reflect_rtype_Align

func Reflect_rtype_Align(unsafe.Pointer) int

func Reflect_rtype_AssignableTo

func Reflect_rtype_AssignableTo(unsafe.Pointer, reflect.Type) bool

func Reflect_rtype_Bits

func Reflect_rtype_Bits(unsafe.Pointer) int

func Reflect_rtype_ChanDir

func Reflect_rtype_ChanDir(unsafe.Pointer) reflect.ChanDir

func Reflect_rtype_Comparable

func Reflect_rtype_Comparable(unsafe.Pointer) bool

func Reflect_rtype_ConvertibleTo

func Reflect_rtype_ConvertibleTo(unsafe.Pointer, reflect.Type) bool

func Reflect_rtype_Elem

func Reflect_rtype_Elem(unsafe.Pointer) reflect.Type

func Reflect_rtype_Field

func Reflect_rtype_Field(unsafe.Pointer, int) reflect.StructField

func Reflect_rtype_FieldAlign

func Reflect_rtype_FieldAlign(unsafe.Pointer) int

func Reflect_rtype_FieldByIndex

func Reflect_rtype_FieldByIndex(unsafe.Pointer, []int) reflect.StructField

func Reflect_rtype_FieldByName

func Reflect_rtype_FieldByName(unsafe.Pointer, string) (reflect.StructField, bool)

func Reflect_rtype_FieldByNameFunc

func Reflect_rtype_FieldByNameFunc(unsafe.Pointer, func(string) bool) (reflect.StructField, bool)

func Reflect_rtype_Implements

func Reflect_rtype_Implements(unsafe.Pointer, reflect.Type) bool

func Reflect_rtype_In

func Reflect_rtype_In(unsafe.Pointer, int) reflect.Type

func Reflect_rtype_IsVariadic

func Reflect_rtype_IsVariadic(unsafe.Pointer) bool

func Reflect_rtype_Key

func Reflect_rtype_Key(unsafe.Pointer) reflect.Type

func Reflect_rtype_Kind

func Reflect_rtype_Kind(unsafe.Pointer) reflect.Kind

func Reflect_rtype_Len

func Reflect_rtype_Len(unsafe.Pointer) int

func Reflect_rtype_Method

func Reflect_rtype_Method(unsafe.Pointer, int) reflect.Method

func Reflect_rtype_MethodByName

func Reflect_rtype_MethodByName(unsafe.Pointer, string) (reflect.Method, bool)

func Reflect_rtype_Name

func Reflect_rtype_Name(unsafe.Pointer) string

func Reflect_rtype_NumField

func Reflect_rtype_NumField(unsafe.Pointer) int

func Reflect_rtype_NumIn

func Reflect_rtype_NumIn(unsafe.Pointer) int

func Reflect_rtype_NumMethod

func Reflect_rtype_NumMethod(unsafe.Pointer) int

func Reflect_rtype_NumOut

func Reflect_rtype_NumOut(unsafe.Pointer) int

func Reflect_rtype_Out

func Reflect_rtype_Out(unsafe.Pointer, int) reflect.Type

func Reflect_rtype_PkgPath

func Reflect_rtype_PkgPath(unsafe.Pointer) string

func Reflect_rtype_Size

func Reflect_rtype_Size(unsafe.Pointer) uintptr

func Reflect_rtype_String

func Reflect_rtype_String(unsafe.Pointer) string

func Reflect_typedmemmove

func Reflect_typedmemmove(rtype unsafe.Pointer, dst, src unsafe.Pointer)

Reflect_typedmemmove copies a value of type t to dst from src.

func Reflect_typedslicecopy

func Reflect_typedslicecopy(elemRType unsafe.Pointer, dst, src unsafeheader.SliceHeader) int

Reflect_typedslicecopy copies a slice of elemType values from src to dst, returning the number of elements copied.

func Reflect_typelinks() ([]unsafe.Pointer, [][]int32)

func Reflect_unsafe_New

func Reflect_unsafe_New(rtype unsafe.Pointer) unsafe.Pointer

func Reflect_unsafe_NewArray

func Reflect_unsafe_NewArray(elemRType unsafe.Pointer, capacity int) unsafe.Pointer

func Runtime_fastrand

func Runtime_fastrand() uint32

func Runtime_fastrand64 added in v2.1.0

func Runtime_fastrand64() uint64

func Runtime_mallocgc added in v2.14.10

func Runtime_mallocgc(size uintptr, typ unsafe.Pointer, needzero bool) unsafe.Pointer

func Runtime_memhash32 added in v2.12.0

func Runtime_memhash32(p unsafe.Pointer, h uintptr) uintptr

func Runtime_memhash64 added in v2.12.0

func Runtime_memhash64(p unsafe.Pointer, h uintptr) uintptr

func Runtime_nilinterhash added in v2.15.1

func Runtime_nilinterhash(p unsafe.Pointer, h uintptr) uintptr

func Runtime_stringHash

func Runtime_stringHash(s string, seed uintptr) uintptr

func Runtime_typehash

func Runtime_typehash(rtype unsafe.Pointer, p unsafe.Pointer, h uintptr) uintptr

Types

type Runtime_moduledata added in v2.15.1

type Runtime_moduledata struct {
	// contains filtered or unexported fields
}

Runtime_moduledata is an opaque proxy type to runtime.moduledata.

func Runtime_activeModules

func Runtime_activeModules() []Runtime_moduledata

func (*Runtime_moduledata) Field_bad added in v2.15.1

func (p *Runtime_moduledata) Field_bad() bool

func (*Runtime_moduledata) Field_ftab added in v2.15.1

func (p *Runtime_moduledata) Field_ftab() []functab

func (*Runtime_moduledata) Field_next added in v2.15.1

func (p *Runtime_moduledata) Field_next() Runtime_moduledata

func (*Runtime_moduledata) Field_pclntable added in v2.15.1

func (p *Runtime_moduledata) Field_pclntable() []byte

Jump to

Keyboard shortcuts

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