MCPcopy Index your code
hub / github.com/CodisLabs/codis / newGoSlice

Function newGoSlice

pkg/utils/unsafe2/go_slice.go:12–16  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

10}
11
12func newGoSlice(n int) Slice {
13 return &goSlice{
14 buf: make([]byte, n),
15 }
16}
17
18func newGoSliceFrom(parent Slice, buf []byte) Slice {
19 return &goSlice{

Callers 1

MakeSliceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected