Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/CodisLabs/codis
/ OffheapBytes
Function
OffheapBytes
pkg/utils/unsafe2/cgo_slice.go:16–18 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
14
var
allocOffheapBytes atomic2.Int64
15
16
func
OffheapBytes() int64 {
17
return
allocOffheapBytes.Int64()
18
}
19
20
type
cgoSlice
struct
{
21
ptr unsafe.Pointer
Callers
1
TestMakeCGoSlice
Function · 0.85
Calls
1
Int64
Method · 0.45
Tested by
1
TestMakeCGoSlice
Function · 0.68