fix: heisi

This commit is contained in:
源文雨
2023-01-10 11:02:49 +08:00
parent f488b75ac6
commit f550d58ad7
4 changed files with 183 additions and 0 deletions

15
plugin/heisi/slice.go Normal file
View File

@@ -0,0 +1,15 @@
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
}