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

Function Make

util/atomic/slice.go:21–28  ·  view source on GitHub ↗
(len, cap, sizeOfElement uintptr)

Source from the content-addressed store, hash-verified

19}
20
21func 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.
31type Slice struct {

Callers 1

NewPlayerListFunction · 0.92

Calls 1

mallocgcFunction · 0.70

Tested by

no test coverage detected