runtime.slice.cap (field)
10 uses
runtime (current package)
cgocall.go#L261: p.cap = cap(s)
cgocall.go#L501: for i := 0; i < s.cap; i++ {
debuglog.go#L307: bb.len, bb.cap = str.len, str.len
mheap.go#L512: sp.cap = n
print.go#L22: rp.cap = sp.len
slice.go#L16: cap int
slice.go#L134: if cap < old.cap {
slice.go#L144: newcap := old.cap
slice.go#L149: if old.cap < 1024 {
stack.go#L1308: *(*slice)(unsafe.Pointer(&objs)) = slice{array: noescape(p), len: int(n), cap: int(n)}
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin 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 @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |