github.com/tetratelabs/wazero@v1.7.3-0.20240513003603-48f702e154b5/internal/engine/wazevo/reflect_tinygo.go (about) 1 //go:build tinygo 2 3 package wazevo 4 5 import "reflect" 6 7 // setSliceLimits sets both Cap and Len for the given reflected slice. 8 func setSliceLimits(s *reflect.SliceHeader, l, c uintptr) { 9 s.Len = l 10 s.Cap = c 11 }