MCPcopy
hub / github.com/tinygo-org/tinygo / pointerCastToUnsafe

Function pointerCastToUnsafe

compiler/testdata/pointer.go:20–22  ·  view source on GitHub ↗
(x *int)

Source from the content-addressed store, hash-verified

18}
19
20func pointerCastToUnsafe(x *int) unsafe.Pointer {
21 return unsafe.Pointer(x)
22}
23
24func pointerCastToUnsafeNoop(x *byte) unsafe.Pointer {
25 return unsafe.Pointer(x)

Callers

nothing calls this directly

Calls 1

PointerMethod · 0.80

Tested by

no test coverage detected