MCPcopy
hub / github.com/CodisLabs/codis / Slice

Interface Slice

pkg/utils/unsafe2/slice.go:8–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6import "github.com/CodisLabs/codis/pkg/utils/sync2/atomic2"
7
8type Slice interface {
9 Type() string
10
11 Buffer() []byte
12 reclaim()
13
14 Slice2(beg, end int) Slice
15 Slice3(beg, end, cap int) Slice
16 Parent() Slice
17}
18
19var maxOffheapBytes atomic2.Int64
20

Callers 9

TestMakeCGoSliceFunction · 0.65
newConnDecoderFunction · 0.65
newConnEncoderFunction · 0.65
FreeSliceFunction · 0.65
TestMakeGoSliceFunction · 0.65
TestMakeCGoSliceFunction · 0.65
TestMakeCGoSliceFunction · 0.65
TestMakeGoSliceFunction · 0.65
TestMakeCGoSliceFunction · 0.65

Implementers 2

goSlicepkg/utils/unsafe2/go_slice.go
cgoSlicepkg/utils/unsafe2/cgo_slice.go

Calls

no outgoing calls

Tested by

no test coverage detected