internal/unsafeheader.Slice.Cap (field)
14 uses
internal/unsafeheader (current package)
unsafeheader.go#L25: Cap int
reflect
value.go#L1168: return (*unsafeheader.Slice)(v.ptr).Cap
value.go#L2357: if uint(n) > uint(s.Cap) {
value.go#L2370: if n < s.Len || n > s.Cap {
value.go#L2373: s.Cap = n
value.go#L2492: cap = s.Cap
value.go#L2516: s.Cap = cap - i
value.go#L2554: cap = s.Cap
value.go#L2568: s.Cap = k - i
value.go#L2831: case p.Len+n > p.Cap:
value.go#L2936: ds.Cap = ds.Len
value.go#L2943: ss.Cap = ss.Len
value.go#L2950: ss.Cap = sh.Len
value.go#L3147: s := unsafeheader.Slice{Data: unsafe_NewArray(&(typ.Elem().(*rtype).t), cap), Len: len, Cap: cap}
The pages are generated with Golds v0.6.7. (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 @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |