- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for resolveReflectName (0.45 sec)
-
src/reflect/export_test.go
OtherExported int otherUnexported int } func IsExported(t Type) bool { typ := t.(*rtype) n := typ.nameOff(typ.t.Str) return n.IsExported() } func ResolveReflectName(s string) { resolveReflectName(newName(s, "", false, false)) } type Buffer struct { buf []byte } func clearLayoutCache() { layoutCache = sync.Map{} }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 15:10:48 UTC 2024 - 3.8K bytes - Viewed (0) -
src/reflect/type.go
// See go.dev/issue/67401. // //go:linkname addReflectOff //go:noescape func addReflectOff(ptr unsafe.Pointer) int32 // resolveReflectName adds a name to the reflection lookup map in the runtime. // It returns a new nameOff that can be used to refer to the pointer. func resolveReflectName(n abi.Name) aNameOff { return aNameOff(addReflectOff(unsafe.Pointer(n.Bytes))) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 85.5K bytes - Viewed (0) -
src/reflect/all_test.go
} } } func TestOffsetLock(t *testing.T) { var wg sync.WaitGroup for i := 0; i < 4; i++ { i := i wg.Add(1) go func() { for j := 0; j < 50; j++ { ResolveReflectName(fmt.Sprintf("OffsetLockName:%d:%d", i, j)) } wg.Done() }() } wg.Wait() } func TestSwapper(t *testing.T) { type I int var a, b, c I type pair struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 218.8K bytes - Viewed (0)