1
0
mirror of https://github.com/fumiama/unibase2n.git synced 2026-06-05 00:32:47 +08:00

add base & pack

This commit is contained in:
源文雨
2022-09-30 20:15:57 +08:00
parent 4d15a66510
commit 35341dcad5
6 changed files with 119 additions and 0 deletions

15
slice.go Normal file
View File

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