Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
207
func
makeMyUint8(x myUint8) myUint8 {
return
x }
208
209
func
addInt(ptr *int, index uintptr) *int {
210
return
(*int)(unsafe.Add(unsafe.Pointer(ptr), unsafe.Sizeof(int(1))*index))
211
}
Callers
1
main
Function · 0.70
Calls
3
Pointer
Method · 0.80
Sizeof
Method · 0.80
Add
Method · 0.45
Tested by
no test coverage detected