1
0
mirror of https://github.com/fumiama/go-base16384.git synced 2026-06-11 05:30:41 +08:00

优化slice

This commit is contained in:
源文雨
2022-12-14 10:40:41 +08:00
parent 75ee4a090e
commit e8419f8b75
2 changed files with 6 additions and 6 deletions

View File

@@ -9,7 +9,7 @@ import "unsafe"
// 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
data unsafe.Pointer
len int
cap int
}