gotosocial/vendor/github.com/tetratelabs/wazero/internal/engine/wazevo/reflect.go

12 lines
219 B
Go
Raw Normal View History

//go:build !tinygo
package wazevo
import "reflect"
// setSliceLimits sets both Cap and Len for the given reflected slice.
func setSliceLimits(s *reflect.SliceHeader, l, c uintptr) {
s.Len = int(l)
s.Cap = int(c)
}