add plugin Heisi

This commit is contained in:
源文雨
2022-10-13 11:13:43 +08:00
parent 4cd81cb2e9
commit 7807e68519
6 changed files with 161 additions and 1 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
}