ZeroBot-Plugin/plugin/heisi/slice.go
2023-01-10 11:02:49 +08:00

16 lines
376 B
Go

package heisi
import "unsafe"
// slice is the runtime representation of a slice.
// It cannot be used safely or portably and its representation may
// change in a later release.
//
// Unlike reflect.SliceHeader, its Data field is sufficient to guarantee the
// data it references will not be garbage collected.
type slice struct {
data unsafe.Pointer
len int
cap int
}