blob: 6a03fc65c7dc18edc10e62d0473c05456c4f9daf (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//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)
}
|