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

Function addInt

testdata/slice.go:209–211  ·  view source on GitHub ↗
(ptr *int, index uintptr)

Source from the content-addressed store, hash-verified

207func makeMyUint8(x myUint8) myUint8 { return x }
208
209func addInt(ptr *int, index uintptr) *int {
210 return (*int)(unsafe.Add(unsafe.Pointer(ptr), unsafe.Sizeof(int(1))*index))
211}

Callers 1

mainFunction · 0.70

Calls 3

PointerMethod · 0.80
SizeofMethod · 0.80
AddMethod · 0.45

Tested by

no test coverage detected