Home | History | Annotate | Download | only in runtime

Lines Matching defs:slice

11 type slice struct {
17 // An notInHeapSlice is a slice backed by go:notinheap memory.
24 // maxElems is a lookup table containing the maximum capacity for a slice.
25 // The index is the size of the slice element.
38 // maxSliceCap returns the maximum capacity for a slice.
46 func makeslice(et *_type, len, cap int) slice {
62 return slice{p, len, cap}
65 func makeslice64(et *_type, len64, cap64 int64) slice {
79 // growslice handles slice growth during append.
80 // It is passed the slice element type, the old slice, and the desired new minimum capacity,
81 // and it returns a new slice with at least that capacity, with the old data
83 // The new slice's length is set to the old slice's length,
85 // This is for codegen convenience. The old slice's length is used immediately
89 func growslice(et *_type, old slice, cap int) slice {
102 // append should not create a slice with nil pointer but non-zero len.
104 return slice{unsafe.Pointer(&zerobase), old.len, cap}
189 return slice{p, old.len, newcap}
192 func slicecopy(to, fm slice, width uintptr) int {