mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-12-05 01:52:46 +00:00
12 lines
219 B
Go
12 lines
219 B
Go
|
//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)
|
||
|
}
|