func unsafe.Offsetof
42 uses
unsafe (current package)
unsafe.go#L206: func Offsetof(x ArbitraryType) uintptr
hash/crc32
crc32_amd64.go#L18: offsetX86HasAVX512VPCLMULQDQL = unsafe.Offsetof(cpu.X86.HasAVX512VPCLMULQDQ)
internal/bytealg
bytealg.go#L14: offsetPPC64HasPOWER9 = unsafe.Offsetof(cpu.PPC64.IsPOWER9)
bytealg.go#L16: offsetRISCV64HasV = unsafe.Offsetof(cpu.RISCV64.HasV)
bytealg.go#L18: offsetLOONG64HasLSX = unsafe.Offsetof(cpu.Loong64.HasLSX)
bytealg.go#L19: offsetLOONG64HasLASX = unsafe.Offsetof(cpu.Loong64.HasLASX)
bytealg.go#L21: offsetS390xHasVX = unsafe.Offsetof(cpu.S390X.HasVX)
bytealg.go#L23: offsetX86HasSSE42 = unsafe.Offsetof(cpu.X86.HasSSE42)
bytealg.go#L24: offsetX86HasAVX2 = unsafe.Offsetof(cpu.X86.HasAVX2)
bytealg.go#L25: offsetX86HasPOPCNT = unsafe.Offsetof(cpu.X86.HasPOPCNT)
internal/chacha8rand
chacha8.go#L18: offsetLOONG64HasLSX = unsafe.Offsetof(cpu.Loong64.HasLSX)
chacha8.go#L19: offsetRISCV64HasV = unsafe.Offsetof(cpu.RISCV64.HasV)
os
dir_unix.go#L119: const namoff = uint64(unsafe.Offsetof(syscall.Dirent{}.Name))
dirent_linux.go#L13: return readInt(buf, unsafe.Offsetof(syscall.Dirent{}.Ino), unsafe.Sizeof(syscall.Dirent{}.Ino))
dirent_linux.go#L17: return readInt(buf, unsafe.Offsetof(syscall.Dirent{}.Reclen), unsafe.Sizeof(syscall.Dirent{}.Reclen))
dirent_linux.go#L25: return reclen - uint64(unsafe.Offsetof(syscall.Dirent{}.Name)), true
dirent_linux.go#L29: off := unsafe.Offsetof(syscall.Dirent{}.Type)
runtime
cpuflags.go#L14: offsetX86HasAVX = unsafe.Offsetof(cpu.X86.HasAVX)
cpuflags.go#L15: offsetX86HasAVX2 = unsafe.Offsetof(cpu.X86.HasAVX2)
cpuflags.go#L16: offsetX86HasAVX512 = unsafe.Offsetof(cpu.X86.HasAVX512) // F+CD+BW+DQ+VL
cpuflags.go#L17: offsetX86HasERMS = unsafe.Offsetof(cpu.X86.HasERMS)
cpuflags.go#L18: offsetX86HasRDTSCP = unsafe.Offsetof(cpu.X86.HasRDTSCP)
cpuflags.go#L20: offsetARMHasIDIVA = unsafe.Offsetof(cpu.ARM.HasIDIVA)
cpuflags.go#L22: offsetMIPS64XHasMSA = unsafe.Offsetof(cpu.MIPS64X.HasMSA)
cpuflags.go#L24: offsetLOONG64HasLSX = unsafe.Offsetof(cpu.Loong64.HasLSX)
cpuflags.go#L25: offsetLOONG64HasLASX = unsafe.Offsetof(cpu.Loong64.HasLASX)
mfinal.go#L123: unsafe.Offsetof(finalizer{}.fn) != 0 ||
mfinal.go#L124: unsafe.Offsetof(finalizer{}.arg) != goarch.PtrSize ||
mfinal.go#L125: unsafe.Offsetof(finalizer{}.nret) != 2*goarch.PtrSize ||
mfinal.go#L126: unsafe.Offsetof(finalizer{}.fint) != 3*goarch.PtrSize ||
mfinal.go#L127: unsafe.Offsetof(finalizer{}.ot) != 4*goarch.PtrSize) {
mgc.go#L198: work.spanSPMCs.list.init(unsafe.Offsetof(spanSPMC{}.allnode))
mheap.go#L3033: if unsafe.Offsetof(gcBitsArena{}.bits)&7 == 0 {
mstats.go#L338: if offset := unsafe.Offsetof(memstats.heapStats); offset%8 != 0 {
proc.go#L854: sched.midle.init(unsafe.Offsetof(m{}.idleNode))
runtime1.go#L208: if unsafe.Offsetof(y1.y) != 1 {
signal_linux_amd64.go#L64: fpfield := ctx + unsafe.Offsetof(ucontext{}.uc_mcontext) + unsafe.Offsetof(mcontext{}.fpregs)
syscall
dirent.go#L80: const namoff = uint64(unsafe.Offsetof(Dirent{}.Name))
syscall_linux.go#L1012: return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino))
syscall_linux.go#L1016: return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
syscall_linux.go#L1024: return reclen - uint64(unsafe.Offsetof(Dirent{}.Name)), true
 |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |