func unsafe.Sizeof
181 uses
unsafe (current package)
unsafe.go#L192: func Sizeof(x ArbitraryType) uintptr
golang.org/x/sys/unix
affinity_linux.go#L20: _, _, e := RawSyscall(trap, uintptr(pid), uintptr(unsafe.Sizeof(*set)), uintptr(unsafe.Pointer(set)))
syscall_linux.go#L839: copy(out[:], (*(*[unsafe.Sizeof(TIPCSocketAddr{})]byte)(unsafe.Pointer(sa)))[:])
syscall_linux.go#L847: copy(out[:], (*(*[unsafe.Sizeof(TIPCServiceRange{})]byte)(unsafe.Pointer(sa)))[:])
syscall_linux.go#L855: copy(out[:], (*(*[unsafe.Sizeof(TIPCServiceName{})]byte)(unsafe.Pointer(sa)))[:])
syscall_linux.go#L1332: return setsockopt(fd, level, opt, unsafe.Pointer(mreq), unsafe.Sizeof(*mreq))
syscall_linux.go#L1336: return setsockopt(fd, level, opt, unsafe.Pointer(mreq), unsafe.Sizeof(*mreq))
syscall_linux.go#L1342: return setsockopt(fd, level, opt, unsafe.Pointer(fprog), unsafe.Sizeof(*fprog))
syscall_linux.go#L1354: return setsockopt(fd, level, opt, unsafe.Pointer(tp), unsafe.Sizeof(*tp))
syscall_linux.go#L1358: return setsockopt(fd, level, opt, unsafe.Pointer(tp), unsafe.Sizeof(*tp))
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#L1779: return mountSetattr(dirfd, pathname, flags, attr, unsafe.Sizeof(*attr))
syscall_linux.go#L2255: const hdrSize = unsafe.Sizeof(fileHandle{})
syscall_linux.go#L2280: size := uint32(32 + unsafe.Sizeof(fileHandle{}))
syscall_linux.go#L2285: fh.Bytes = size - uint32(unsafe.Sizeof(fileHandle{}))
syscall_linux.go#L2293: size = fh.Bytes + uint32(unsafe.Sizeof(fileHandle{}))
syscall_unix.go#L310: vallen := _Socklen(unsafe.Sizeof(tv))
syscall_unix.go#L510: return setsockopt(fd, level, opt, unsafe.Pointer(tv), unsafe.Sizeof(*tv))
golang.org/x/tools/internal/tokeninternal
tokeninternal.go#L41: switch unsafe.Sizeof(*file) {
tokeninternal.go#L42: case unsafe.Sizeof(tokenFile118{}):
tokeninternal.go#L49: case unsafe.Sizeof(tokenFile119{}):
google.golang.org/protobuf/internal/impl
pointer_unsafe.go#L142: const _ = uint(unsafe.Sizeof(unsafe.Pointer(nil)) - unsafe.Sizeof(MessageState{}))
internal/poll
splice_linux.go#L168: _ [24 - unsafe.Sizeof(splicePipeFields{})%24]byte
internal/reflectlite
type.go#L672: uadd := unsafe.Sizeof(*t)
type.go#L674: uadd += unsafe.Sizeof(uncommonType{})
type.go#L683: uadd := unsafe.Sizeof(*t)
type.go#L685: uadd += unsafe.Sizeof(uncommonType{})
os
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))
reflect
type.go#L1057: uadd := unsafe.Sizeof(*t)
type.go#L1059: uadd += unsafe.Sizeof(uncommonType{})
type.go#L1068: uadd := unsafe.Sizeof(*t)
type.go#L1070: uadd += unsafe.Sizeof(uncommonType{})
type.go#L2685: ut.moff = uint32(unsafe.Sizeof(uncommonType{}))
runtime
alg.go#L37: size := *(*uintptr)(unsafe.Pointer(ptr + unsafe.Sizeof(h)))
cgo_sigaction.go#L28: msanwrite(unsafe.Pointer(new), unsafe.Sizeof(*new))
cgo_sigaction.go#L31: asanwrite(unsafe.Pointer(new), unsafe.Sizeof(*new))
cgo_sigaction.go#L82: msanread(unsafe.Pointer(old), unsafe.Sizeof(*old))
cgo_sigaction.go#L85: asanread(unsafe.Pointer(old), unsafe.Sizeof(*old))
chan.go#L29: hchanSize = unsafe.Sizeof(hchan{}) + uintptr(-int(unsafe.Sizeof(hchan{}))&(maxAlign-1))
debuglog.go#L75: l = (*dlogger)(sysAlloc(unsafe.Sizeof(dlogger{}), nil))
debuglog.go#L717: state1 := sysAlloc(unsafe.Sizeof(readState{})*uintptr(n), nil)
defs_linux_amd64.go#L147: _ [_si_max_size - unsafe.Sizeof(siginfoFields{})]byte
defs_linux_amd64.go#L172: _ [_sigev_max_size - unsafe.Sizeof(sigeventFields{})]byte
heapdump.go#L679: memclrNoHeapPointers(unsafe.Pointer(&typecache), unsafe.Sizeof(typecache))
iface.go#L67: m = (*itab)(persistentalloc(unsafe.Sizeof(itab{})+uintptr(len(inter.mhdr)-1)*goarch.PtrSize, 0, &memstats.other_sys))
iface.go#L392: x = mallocgc(unsafe.Sizeof(val), stringType, true)
iface.go#L403: x = mallocgc(unsafe.Sizeof(val), sliceType, true)
malloc.go#L575: const arenaMetaSize = (1 << arenaBits) * unsafe.Sizeof(heapArena{})
malloc.go#L741: l2 = (*[1 << arenaL2Bits]*heapArena)(persistentalloc(unsafe.Sizeof(*l2), goarch.PtrSize, nil))
malloc.go#L752: r = (*heapArena)(h.heapArenaAlloc.alloc(unsafe.Sizeof(*r), goarch.PtrSize, &memstats.gcMiscSys))
malloc.go#L754: r = (*heapArena)(persistentalloc(unsafe.Sizeof(*r), goarch.PtrSize, &memstats.gcMiscSys))
map.go#L826: if unsafe.Sizeof(hiter{})/goarch.PtrSize != 12 {
mcheckmark.go#L46: bitmap = (*checkmarksMap)(persistentalloc(unsafe.Sizeof(*bitmap), 0, &memstats.gcMiscSys))
mfinal.go#L29: fin [(_FinBlockSize - 2*goarch.PtrSize - 2*4) / unsafe.Sizeof(finalizer{})]finalizer
mfinal.go#L98: if (unsafe.Sizeof(finalizer{}) != 5*goarch.PtrSize ||
mfinal.go#L198: framesz := unsafe.Sizeof((any)(nil)) + f.nret
mfixalloc.go#L57: if min := unsafe.Sizeof(mlink{}); size < min {
mgc.go#L153: if unsafe.Sizeof(workbuf{}) != _WorkbufSize {
mgcmark.go#L183: scanblock(uintptr(unsafe.Pointer(&fb.fin[0])), cnt*unsafe.Sizeof(fb.fin[0]), &finptrmask[0], gcw, nil)
mgcstack.go#L110: obj [(_WorkbufSize - unsafe.Sizeof(stackWorkBufHdr{})) / goarch.PtrSize]uintptr
mgcstack.go#L130: obj [(_WorkbufSize - unsafe.Sizeof(stackObjectBufHdr{})) / unsafe.Sizeof(stackObject{})]stackObject
mgcstack.go#L140: if unsafe.Sizeof(stackWorkBuf{}) > unsafe.Sizeof(workbuf{}) {
mgcstack.go#L143: if unsafe.Sizeof(stackObjectBuf{}) > unsafe.Sizeof(workbuf{}) {
mgcwork.go#L326: obj [(_WorkbufSize - unsafe.Sizeof(workbufhdr{})) / goarch.PtrSize]uintptr
mgcwork.go#L437: memmove(unsafe.Pointer(&b1.obj[0]), unsafe.Pointer(&b.obj[b.nobj]), uintptr(n)*unsafe.Sizeof(b1.obj[0]))
mheap.go#L206: pad [cpu.CacheLinePadSize - unsafe.Sizeof(mcentral{})%cpu.CacheLinePadSize]byte
mheap.go#L515: sysFree(unsafe.Pointer(&oldAllspans[0]), uintptr(cap(oldAllspans))*unsafe.Sizeof(oldAllspans[0]), &memstats.other_sys)
mheap.go#L701: h.spanalloc.init(unsafe.Sizeof(mspan{}), recordspan, unsafe.Pointer(h), &memstats.mspan_sys)
mheap.go#L702: h.cachealloc.init(unsafe.Sizeof(mcache{}), nil, nil, &memstats.mcache_sys)
mheap.go#L703: h.specialfinalizeralloc.init(unsafe.Sizeof(specialfinalizer{}), nil, nil, &memstats.other_sys)
mheap.go#L704: h.specialprofilealloc.init(unsafe.Sizeof(specialprofile{}), nil, nil, &memstats.other_sys)
mheap.go#L705: h.specialReachableAlloc.init(unsafe.Sizeof(specialReachable{}), nil, nil, &memstats.other_sys)
mheap.go#L706: h.arenaHintAlloc.init(unsafe.Sizeof(arenaHint{}), nil, nil, &memstats.other_sys)
mheap.go#L1959: const gcBitsHeaderBytes = unsafe.Sizeof(gcBitsHeader{})
mpagealloc.go#L411: r := sysAlloc(unsafe.Sizeof(*p.chunks[0]), p.sysStat)
mpagealloc.go#L921: pallocSumBytes = unsafe.Sizeof(pallocSum(0))
mpagecache.go#L12: const pageCachePages = 8 * unsafe.Sizeof(pageCache{}.cache)
mprof.go#L164: size := unsafe.Sizeof(bucket{}) + uintptr(nstk)*unsafe.Sizeof(uintptr(0))
mprof.go#L169: size += unsafe.Sizeof(memRecord{})
mprof.go#L171: size += unsafe.Sizeof(blockRecord{})
mprof.go#L183: stk := (*[maxStack]uintptr)(add(unsafe.Pointer(b), unsafe.Sizeof(*b)))
mprof.go#L192: data := add(unsafe.Pointer(b), unsafe.Sizeof(*b)+b.nstk*unsafe.Sizeof(uintptr(0)))
mprof.go#L201: data := add(unsafe.Pointer(b), unsafe.Sizeof(*b)+b.nstk*unsafe.Sizeof(uintptr(0)))
mprof.go#L208: buckhash = (*[buckHashSize]*bucket)(sysAlloc(unsafe.Sizeof(*buckhash), &memstats.buckhash_sys))
mprof.go#L625: racewriterangepc(unsafe.Pointer(&r.Stack0[0]), unsafe.Sizeof(r.Stack0), getcallerpc(), abi.FuncPCABIInternal(MemProfile))
mprof.go#L628: msanwrite(unsafe.Pointer(&r.Stack0[0]), unsafe.Sizeof(r.Stack0))
mprof.go#L631: asanwrite(unsafe.Pointer(&r.Stack0[0]), unsafe.Sizeof(r.Stack0))
mprof.go#L681: racewriterangepc(unsafe.Pointer(&r.Stack0[0]), unsafe.Sizeof(r.Stack0), getcallerpc(), abi.FuncPCABIInternal(BlockProfile))
mprof.go#L684: msanwrite(unsafe.Pointer(&r.Stack0[0]), unsafe.Sizeof(r.Stack0))
mprof.go#L687: asanwrite(unsafe.Pointer(&r.Stack0[0]), unsafe.Sizeof(r.Stack0))
mranges.go#L170: ranges.array = (*notInHeap)(persistentalloc(unsafe.Sizeof(addrRange{})*uintptr(ranges.cap), goarch.PtrSize, sysStat))
mranges.go#L297: ranges.array = (*notInHeap)(persistentalloc(unsafe.Sizeof(addrRange{})*uintptr(ranges.cap), goarch.PtrSize, a.sysStat))
mranges.go#L367: ranges.array = (*notInHeap)(persistentalloc(unsafe.Sizeof(addrRange{})*uintptr(ranges.cap), goarch.PtrSize, b.sysStat))
mspanset.go#L286: return (*spanSetBlock)(persistentalloc(unsafe.Sizeof(spanSetBlock{}), cpu.CacheLineSize, &memstats.gcMiscSys))
mstats.go#L390: if size := unsafe.Sizeof(heapStatsDelta{}); size%8 != 0 {
mwbbuf.go#L94: b.end = start + uintptr(len(b.buf))*unsafe.Sizeof(b.buf[0])
mwbbuf.go#L97: if (b.end-b.next)%(wbBufEntryPointers*unsafe.Sizeof(b.buf[0])) != 0 {
mwbbuf.go#L218: n := (_p_.wbBuf.next - start) / unsafe.Sizeof(_p_.wbBuf.buf[0])
netpoll.go#L616: const pdSize = unsafe.Sizeof(pollDesc{})
os_linux.go#L103: r := sched_getaffinity(0, unsafe.Sizeof(buf), &buf[0])
os_linux.go#L262: n = read(fd, noescape(unsafe.Pointer(&buf[0])), int32(unsafe.Sizeof(buf)))
os_linux.go#L434: rtsigprocmask(how, new, old, int32(unsafe.Sizeof(*new)))
os_linux.go#L514: if rt_sigaction(uintptr(sig), new, old, unsafe.Sizeof(sigactiont{}.sa_mask)) != 0 {
panic.go#L685: fd = add(fd, unsafe.Sizeof(b))
print.go#L273: minhexdigits = int(unsafe.Sizeof(uintptr(0)) * 2)
proc.go#L836: s := (*[unsafe.Sizeof(fastrandseed)]byte)(unsafe.Pointer(&fastrandseed))[:]
proc.go#L2136: msanwrite(unsafe.Pointer(&ts), unsafe.Sizeof(ts))
proc.go#L2139: asanwrite(unsafe.Pointer(&ts), unsafe.Sizeof(ts))
proc.go#L4105: memclrNoHeapPointers(unsafe.Pointer(&newg.sched), unsafe.Sizeof(newg.sched))
runtime1.go#L163: if unsafe.Sizeof(a) != 1 {
runtime1.go#L166: if unsafe.Sizeof(b) != 1 {
runtime1.go#L169: if unsafe.Sizeof(c) != 2 {
runtime1.go#L172: if unsafe.Sizeof(d) != 2 {
runtime1.go#L175: if unsafe.Sizeof(e) != 4 {
runtime1.go#L178: if unsafe.Sizeof(f) != 4 {
runtime1.go#L181: if unsafe.Sizeof(g) != 8 {
runtime1.go#L184: if unsafe.Sizeof(h) != 8 {
runtime1.go#L187: if unsafe.Sizeof(i) != 4 {
runtime1.go#L190: if unsafe.Sizeof(j) != 8 {
runtime1.go#L193: if unsafe.Sizeof(k) != goarch.PtrSize {
runtime1.go#L196: if unsafe.Sizeof(l) != goarch.PtrSize {
runtime1.go#L199: if unsafe.Sizeof(x1) != 1 {
runtime1.go#L205: if unsafe.Sizeof(y1) != 2 {
sema.go#L51: pad [cpu.CacheLinePadSize - unsafe.Sizeof(semaRoot{})]byte
sema.go#L608: if sz != unsafe.Sizeof(notifyList{}) {
sema.go#L609: print("runtime: bad notifyList size - sync=", sz, " runtime=", unsafe.Sizeof(notifyList{}), "\n")
stack.go#L158: _ [cpu.CacheLinePadSize - unsafe.Sizeof(stackpoolItem{})%cpu.CacheLinePadSize]byte
stack.go#L1335: if (GOARCH == "amd64" || GOARCH == "arm64" || GOARCH == "ppc64" || GOARCH == "ppc64le") && unsafe.Sizeof(abi.RegArgs{}) > 0 && frame.argmap != nil {
string.go#L211: uintptr(len(a))*unsafe.Sizeof(a[0]),
string.go#L216: msanread(unsafe.Pointer(&a[0]), uintptr(len(a))*unsafe.Sizeof(a[0]))
string.go#L219: asanread(unsafe.Pointer(&a[0]), uintptr(len(a))*unsafe.Sizeof(a[0]))
symtab.go#L841: ffb := (*findfuncbucket)(add(unsafe.Pointer(datap.findfunctab), b*unsafe.Sizeof(findfuncbucket{})))
symtab.go#L1066: return *(*uint32)(add(unsafe.Pointer(&f.nfuncdata), unsafe.Sizeof(f.nfuncdata)+uintptr(table)*4))
symtab.go#L1101: p := uintptr(unsafe.Pointer(&f.nfuncdata)) + unsafe.Sizeof(f.nfuncdata) + uintptr(f.npcdata)*4 + uintptr(i)*4
trace.go#L161: arr [64<<10 - unsafe.Sizeof(traceBufHeader{})]byte // underlying buffer for traceBufHeader.buf
trace.go#L366: sysFree(unsafe.Pointer(buf), unsafe.Sizeof(*buf.ptr()), &memstats.other_sys)
trace.go#L655: buf = traceBufPtr(sysAlloc(unsafe.Sizeof(traceBuf{}), &memstats.other_sys))
trace.go#L799: hash := memhash(unsafe.Pointer(&pcs[0]), 0, uintptr(len(pcs))*unsafe.Sizeof(pcs[0]))
trace.go#L846: return (*traceStack)(tab.mem.alloc(unsafe.Sizeof(traceStack{}) + uintptr(n)*goarch.PtrSize))
trace.go#L962: block := (*traceAllocBlock)(sysAlloc(unsafe.Sizeof(traceAllocBlock{}), &memstats.other_sys))
trace.go#L980: sysFree(unsafe.Pointer(block), unsafe.Sizeof(traceAllocBlock{}), &memstats.other_sys)
traceback.go#L1405: msanwrite(unsafe.Pointer(arg), unsafe.Sizeof(cgoSymbolizerArg{}))
traceback.go#L1408: asanwrite(unsafe.Pointer(arg), unsafe.Sizeof(cgoSymbolizerArg{}))
traceback.go#L1430: msanwrite(unsafe.Pointer(&arg), unsafe.Sizeof(arg))
traceback.go#L1433: asanwrite(unsafe.Pointer(&arg), unsafe.Sizeof(arg))
type.go#L297: uadd := uintptr(unsafe.Sizeof(functype{}))
type.go#L299: uadd += unsafe.Sizeof(uncommontype{})
type.go#L306: uadd := uintptr(unsafe.Sizeof(functype{}))
type.go#L308: uadd += unsafe.Sizeof(uncommontype{})
vdso_linux.go#L53: vdsoSymTabSize = vdsoArrayMax / unsafe.Sizeof(elfSym{})
vdso_linux.go#L54: vdsoDynSize = vdsoArrayMax / unsafe.Sizeof(elfDyn{})
vdso_linux.go#L61: vdsoBloomSizeScale = unsafe.Sizeof(uintptr(0)) / 4 // uint32
vdso_linux.go#L113: pt := (*elfPhdr)(add(pt, uintptr(i)*unsafe.Sizeof(elfPhdr{})))
runtime/pprof
map.go#L32: h = h<<8 | (h >> (8 * (unsafe.Sizeof(h) - 1)))
map.go#L35: h = h<<8 | (h >> (8 * (unsafe.Sizeof(h) - 1)))
sync
pool.go#L70: pad [128 - unsafe.Sizeof(poolLocalInternal{})%128]byte
pool.go#L277: lp := unsafe.Pointer(uintptr(l) + uintptr(i)*unsafe.Sizeof(poolLocal{}))
runtime.go#L47: runtime_notifyListCheck(unsafe.Sizeof(n))
syscall
exec_linux.go#L105: RawSyscall(SYS_WRITE, uintptr(p[1]), uintptr(unsafe.Pointer(&err2)), unsafe.Sizeof(err2))
exec_linux.go#L248: r1, _, err1 = RawSyscall(SYS_READ, uintptr(p[0]), uintptr(unsafe.Pointer(&err2)), unsafe.Sizeof(err2))
exec_linux.go#L252: if r1 != unsafe.Sizeof(err2) {
exec_linux.go#L535: RawSyscall(SYS_WRITE, uintptr(pipe), uintptr(unsafe.Pointer(&err1)), unsafe.Sizeof(err1))
exec_unix.go#L221: n, err = readlen(p[0], (*byte)(unsafe.Pointer(&err1)), int(unsafe.Sizeof(err1)))
exec_unix.go#L228: if n == int(unsafe.Sizeof(err1)) {
lsf_linux.go#L79: return setsockopt(fd, SOL_SOCKET, SO_ATTACH_FILTER, unsafe.Pointer(&p), unsafe.Sizeof(p))
lsf_linux.go#L85: return setsockopt(fd, SOL_SOCKET, SO_DETACH_FILTER, unsafe.Pointer(&dummy), unsafe.Sizeof(dummy))
sockcmsg_linux.go#L34: if uintptr(len(m.Data)) < unsafe.Sizeof(Ucred{}) {
syscall_linux.go#L640: return setsockopt(fd, level, opt, unsafe.Pointer(mreq), unsafe.Sizeof(*mreq))
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_unix.go#L459: return setsockopt(fd, level, opt, unsafe.Pointer(tv), unsafe.Sizeof(*tv))