MCPcopy Create free account
hub / github.com/ZeppelinMC/Zeppelin / Slice

Struct Slice

util/atomic/slice.go:31–36  ·  view source on GitHub ↗

Slice is an atomic slice with all read only fields. Entries cannot be removed.

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected