Slice is an atomic slice with all read only fields. Entries cannot be removed.
| 29 | |
| 30 | // Slice is an atomic slice with all read only fields. Entries cannot be removed. |
| 31 | type Slice struct { |
| 32 | ptr, len, cap uintptr |
| 33 | |
| 34 | //not atomic |
| 35 | sizeOfElement uintptr |
| 36 | } |
| 37 | |
| 38 | func (a *Slice) Len() uintptr { |
| 39 | return atomic.LoadUintptr(&a.len) |
nothing calls this directly
no outgoing calls
no test coverage detected