MCPcopy 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
35func interfaceAssert[T any](v any) T {
36 return *(*T)(unsafe.Add(unsafe.Pointer(&v), unsafe.Sizeof(0)))
37}
38
39func (p *Player) keepAlive() error {
40 l := time.Now().UnixMilli()

Callers

nothing calls this directly

Calls 2

PointerMethod · 0.80
AddMethod · 0.45

Tested by

no test coverage detected