github.com/jxskiss/gopkg@v0.17.3/internal/linkname/reflect.go (about)

     1  package linkname
     2  
     3  import (
     4  	"reflect"
     5  	"unsafe"
     6  
     7  	"github.com/jxskiss/gopkg/internal/unsafeheader"
     8  )
     9  
    10  //go:linkname Reflect_typelinks reflect.typelinks
    11  func Reflect_typelinks() ([]unsafe.Pointer, [][]int32)
    12  
    13  //go:linkname Reflect_resolveTypeOff reflect.resolveTypeOff
    14  func Reflect_resolveTypeOff(_ unsafe.Pointer, _ int32) unsafe.Pointer
    15  
    16  //go:linkname Reflect_rtype_Align reflect.(*rtype).Align
    17  //go:noescape
    18  func Reflect_rtype_Align(unsafe.Pointer) int
    19  
    20  //go:linkname Reflect_rtype_FieldAlign reflect.(*rtype).FieldAlign
    21  //go:noescape
    22  func Reflect_rtype_FieldAlign(unsafe.Pointer) int
    23  
    24  //go:linkname Reflect_rtype_Method reflect.(*rtype).Method
    25  //go:noescape
    26  func Reflect_rtype_Method(unsafe.Pointer, int) reflect.Method
    27  
    28  //go:linkname Reflect_rtype_MethodByName reflect.(*rtype).MethodByName
    29  //go:noescape
    30  func Reflect_rtype_MethodByName(unsafe.Pointer, string) (reflect.Method, bool)
    31  
    32  //go:linkname Reflect_rtype_NumMethod reflect.(*rtype).NumMethod
    33  //go:noescape
    34  func Reflect_rtype_NumMethod(unsafe.Pointer) int
    35  
    36  //go:linkname Reflect_rtype_Name reflect.(*rtype).Name
    37  //go:noescape
    38  func Reflect_rtype_Name(unsafe.Pointer) string
    39  
    40  //go:linkname Reflect_rtype_PkgPath reflect.(*rtype).PkgPath
    41  //go:noescape
    42  func Reflect_rtype_PkgPath(unsafe.Pointer) string
    43  
    44  //go:linkname Reflect_rtype_Size reflect.(*rtype).Size
    45  //go:noescape
    46  func Reflect_rtype_Size(unsafe.Pointer) uintptr
    47  
    48  //go:linkname Reflect_rtype_String reflect.(*rtype).String
    49  //go:noescape
    50  func Reflect_rtype_String(unsafe.Pointer) string
    51  
    52  //go:linkname Reflect_rtype_Kind reflect.(*rtype).Kind
    53  //go:noescape
    54  func Reflect_rtype_Kind(unsafe.Pointer) reflect.Kind
    55  
    56  //go:linkname Reflect_rtype_Implements reflect.(*rtype).Implements
    57  //go:noescape
    58  func Reflect_rtype_Implements(unsafe.Pointer, reflect.Type) bool
    59  
    60  //go:linkname Reflect_rtype_AssignableTo reflect.(*rtype).AssignableTo
    61  //go:noescape
    62  func Reflect_rtype_AssignableTo(unsafe.Pointer, reflect.Type) bool
    63  
    64  //go:linkname Reflect_rtype_ConvertibleTo reflect.(*rtype).ConvertibleTo
    65  //go:noescape
    66  func Reflect_rtype_ConvertibleTo(unsafe.Pointer, reflect.Type) bool
    67  
    68  //go:linkname Reflect_rtype_Comparable reflect.(*rtype).Comparable
    69  //go:noescape
    70  func Reflect_rtype_Comparable(unsafe.Pointer) bool
    71  
    72  //go:linkname Reflect_rtype_Bits reflect.(*rtype).Bits
    73  //go:noescape
    74  func Reflect_rtype_Bits(unsafe.Pointer) int
    75  
    76  //go:linkname Reflect_rtype_ChanDir reflect.(*rtype).ChanDir
    77  //go:noescape
    78  func Reflect_rtype_ChanDir(unsafe.Pointer) reflect.ChanDir
    79  
    80  //go:linkname Reflect_rtype_IsVariadic reflect.(*rtype).IsVariadic
    81  //go:noescape
    82  func Reflect_rtype_IsVariadic(unsafe.Pointer) bool
    83  
    84  //go:linkname Reflect_rtype_Elem reflect.(*rtype).Elem
    85  //go:noescape
    86  func Reflect_rtype_Elem(unsafe.Pointer) reflect.Type
    87  
    88  //go:linkname Reflect_rtype_Field reflect.(*rtype).Field
    89  //go:noescape
    90  func Reflect_rtype_Field(unsafe.Pointer, int) reflect.StructField
    91  
    92  //go:linkname Reflect_rtype_FieldByIndex reflect.(*rtype).FieldByIndex
    93  //go:noescape
    94  func Reflect_rtype_FieldByIndex(unsafe.Pointer, []int) reflect.StructField
    95  
    96  //go:linkname Reflect_rtype_FieldByName reflect.(*rtype).FieldByName
    97  //go:noescape
    98  func Reflect_rtype_FieldByName(unsafe.Pointer, string) (reflect.StructField, bool)
    99  
   100  //go:linkname Reflect_rtype_FieldByNameFunc reflect.(*rtype).FieldByNameFunc
   101  //go:noescape
   102  func Reflect_rtype_FieldByNameFunc(unsafe.Pointer, func(string) bool) (reflect.StructField, bool)
   103  
   104  //go:linkname Reflect_rtype_In reflect.(*rtype).In
   105  //go:noescape
   106  func Reflect_rtype_In(unsafe.Pointer, int) reflect.Type
   107  
   108  //go:linkname Reflect_rtype_Key reflect.(*rtype).Key
   109  //go:noescape
   110  func Reflect_rtype_Key(unsafe.Pointer) reflect.Type
   111  
   112  //go:linkname Reflect_rtype_Len reflect.(*rtype).Len
   113  //go:noescape
   114  func Reflect_rtype_Len(unsafe.Pointer) int
   115  
   116  //go:linkname Reflect_rtype_NumField reflect.(*rtype).NumField
   117  //go:noescape
   118  func Reflect_rtype_NumField(unsafe.Pointer) int
   119  
   120  //go:linkname Reflect_rtype_NumIn reflect.(*rtype).NumIn
   121  //go:noescape
   122  func Reflect_rtype_NumIn(unsafe.Pointer) int
   123  
   124  //go:linkname Reflect_rtype_NumOut reflect.(*rtype).NumOut
   125  //go:noescape
   126  func Reflect_rtype_NumOut(unsafe.Pointer) int
   127  
   128  //go:linkname Reflect_rtype_Out reflect.(*rtype).Out
   129  //go:noescape
   130  func Reflect_rtype_Out(unsafe.Pointer, int) reflect.Type
   131  
   132  //go:linkname Reflect_rtype_ptrTo reflect.(*rtype).ptrTo
   133  //go:noescape
   134  func Reflect_rtype_ptrTo(unsafe.Pointer) unsafe.Pointer
   135  
   136  //go:linkname Reflect_ifaceIndir reflect.ifaceIndir
   137  //go:noescape
   138  func Reflect_ifaceIndir(unsafe.Pointer) bool
   139  
   140  //go:linkname Reflect_toType reflect.toType
   141  //go:noescape
   142  func Reflect_toType(unsafe.Pointer) reflect.Type
   143  
   144  //go:linkname Reflect_unsafe_New reflect.unsafe_New
   145  func Reflect_unsafe_New(unsafe.Pointer) unsafe.Pointer
   146  
   147  //go:linkname Reflect_unsafe_NewArray reflect.unsafe_NewArray
   148  func Reflect_unsafe_NewArray(unsafe.Pointer, int) unsafe.Pointer
   149  
   150  // Reflect_typedmemmove copies a value of type t to dst from src.
   151  //go:noescape
   152  //go:linkname Reflect_typedmemmove reflect.typedmemmove
   153  func Reflect_typedmemmove(t unsafe.Pointer, dst, src unsafe.Pointer)
   154  
   155  // Reflect_typedslicecopy copies a slice of elemType values from src to dst,
   156  // returning the number of elements copied.
   157  //go:noescape
   158  //go:linkname Reflect_typedslicecopy reflect.typedslicecopy
   159  func Reflect_typedslicecopy(elemRType unsafe.Pointer, dst, src unsafeheader.Slice) int
   160  
   161  //go:noescape
   162  //go:linkname Reflect_maplen reflect.maplen
   163  func Reflect_maplen(m unsafe.Pointer) int
   164  
   165  //go:noescape
   166  //go:linkname Reflect_mapiterkey reflect.mapiterkey
   167  func Reflect_mapiterkey(it unsafe.Pointer) (key unsafe.Pointer)
   168  
   169  //go:noescape
   170  //go:linkname Reflect_mapiterelem reflect.mapiterelem
   171  func Reflect_mapiterelem(it unsafe.Pointer) (elem unsafe.Pointer)
   172  
   173  //go:noescape
   174  //go:linkname Reflect_mapiternext reflect.mapiternext
   175  func Reflect_mapiternext(it unsafe.Pointer)