(len, cap, sizeOfElement uintptr)
| 19 | } |
| 20 | |
| 21 | func Make(len, cap, sizeOfElement uintptr) Slice { |
| 22 | return Slice{ |
| 23 | ptr: uintptr(mallocgc(cap, nil, false)), |
| 24 | len: len, cap: cap, |
| 25 | |
| 26 | sizeOfElement: sizeOfElement, |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | // Slice is an atomic slice with all read only fields. Entries cannot be removed. |
| 31 | type Slice struct { |
no test coverage detected