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

Method Pointer

src/internal/reflectlite/value.go:253–255  ·  view source on GitHub ↗

Pointer returns the underlying pointer of the given value for the following types: chan, map, pointer, unsafe.Pointer, slice, func.

()

Source from the content-addressed store, hash-verified

251// Pointer returns the underlying pointer of the given value for the following
252// types: chan, map, pointer, unsafe.Pointer, slice, func.
253func (v Value) Pointer() uintptr {
254 return uintptr(v.UnsafePointer())
255}
256
257// UnsafePointer returns the underlying pointer of the given value for the
258// following types: chan, map, pointer, unsafe.Pointer, slice, func.

Callers 15

EqualMethod · 0.95
mainFunction · 0.80
mainFunction · 0.80
showValueFunction · 0.80
mainFunction · 0.80
addIntFunction · 0.80
mainFunction · 0.80
pointerCastToUnsafeFunction · 0.80
pointerCastToUnsafeNoopFunction · 0.80
readNamesMethod · 0.80

Implementers 12

refMapcgo/sync.go
ADCsrc/machine/machine.go
pwmGroupsrc/machine/machine_rp2_pwm.go
RingBuffersrc/machine/buffer.go
RingBuffersrc/machine/usb/adc/midi/buffer.go
RingBuffersrc/machine/usb/hid/buffer.go
Register8src/runtime/volatile/register.go
Register16src/runtime/volatile/register.go
Register32src/runtime/volatile/register.go
Register64src/runtime/volatile/register.go
BitRegistersrc/runtime/volatile/bitband_nxpmk66f1
Poolsrc/sync/pool.go

Calls 1

UnsafePointerMethod · 0.95

Tested by 6

TestAlignmentFunction · 0.64
setFieldFunction · 0.64
valueToStringFunction · 0.64
getFilledBuffer_reallocFunction · 0.64
checkFilledBufferFunction · 0.64
TestMallocFreeFunction · 0.64