Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ZeppelinMC/Zeppelin
/ interfaceAssert
Function
interfaceAssert
server/player/conn.go:35–37 ·
view source on GitHub ↗
(v any)
Source
from the content-addressed store, hash-verified
33
}
34
35
func
interfaceAssert[T any](v any) T {
36
return
*(*T)(unsafe.Add(unsafe.Pointer(&v), unsafe.Sizeof(0)))
37
}
38
39
func
(p *Player) keepAlive() error {
40
l := time.Now().UnixMilli()
Callers
nothing calls this directly
Calls
2
Pointer
Method · 0.80
Add
Method · 0.45
Tested by
no test coverage detected