func unsafe.Offsetof

37 uses

	unsafe (current package)
		unsafe.go#L198: func Offsetof(x ArbitraryType) uintptr

	golang.org/x/sys/unix
		dirent.go#L82: 		const namoff = uint64(unsafe.Offsetof(Dirent{}.Name))
		syscall_linux.go#L1742: 	return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino))
		syscall_linux.go#L1746: 	return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
		syscall_linux.go#L1754: 	return reclen - uint64(unsafe.Offsetof(Dirent{}.Name)), true

	internal/bytealg
		bytealg.go#L14: 	offsetX86HasSSE42  = unsafe.Offsetof(cpu.X86.HasSSE42)
		bytealg.go#L15: 	offsetX86HasAVX2   = unsafe.Offsetof(cpu.X86.HasAVX2)
		bytealg.go#L16: 	offsetX86HasPOPCNT = unsafe.Offsetof(cpu.X86.HasPOPCNT)
		bytealg.go#L18: 	offsetS390xHasVX = unsafe.Offsetof(cpu.S390X.HasVX)
		bytealg.go#L20: 	offsetPPC64HasPOWER9 = unsafe.Offsetof(cpu.PPC64.IsPOWER9)

	os
		dir_unix.go#L95: 		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: 	offsetX86HasERMS   = unsafe.Offsetof(cpu.X86.HasERMS)
		cpuflags.go#L17: 	offsetX86HasRDTSCP = unsafe.Offsetof(cpu.X86.HasRDTSCP)
		cpuflags.go#L19: 	offsetARMHasIDIVA = unsafe.Offsetof(cpu.ARM.HasIDIVA)
		cpuflags.go#L21: 	offsetMIPS64XHasMSA = unsafe.Offsetof(cpu.MIPS64X.HasMSA)
		map.go#L84: 	dataOffset = unsafe.Offsetof(struct {
		mfinal.go#L99: 					unsafe.Offsetof(finalizer{}.fn) != 0 ||
		mfinal.go#L100: 					unsafe.Offsetof(finalizer{}.arg) != goarch.PtrSize ||
		mfinal.go#L101: 					unsafe.Offsetof(finalizer{}.nret) != 2*goarch.PtrSize ||
		mfinal.go#L102: 					unsafe.Offsetof(finalizer{}.fint) != 3*goarch.PtrSize ||
		mfinal.go#L103: 					unsafe.Offsetof(finalizer{}.ot) != 4*goarch.PtrSize) {
		mgcpacer.go#L65: 	if offset := unsafe.Offsetof(gcController.heapLive); offset%8 != 0 {
		mheap.go#L2113: 	if uintptr(unsafe.Offsetof(gcBitsArena{}.bits))&7 == 0 {
		mstats.go#L380: 	if offset := unsafe.Offsetof(memstats.heapStats); offset%8 != 0 {
		mstats.go#L384: 	if offset := unsafe.Offsetof(memstats.gcPauseDist); offset%8 != 0 {
		proc.go#L704: 	if offset := unsafe.Offsetof(sched.timeToRun); offset%8 != 0 {
		runtime1.go#L202: 	if unsafe.Offsetof(y1.y) != 1 {

	syscall
		dirent.go#L81: 		const namoff = uint64(unsafe.Offsetof(Dirent{}.Name))
		syscall_linux.go#L874: 	return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino))
		syscall_linux.go#L878: 	return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
		syscall_linux.go#L886: 	return reclen - uint64(unsafe.Offsetof(Dirent{}.Name)), true