github.com/songzhibin97/gkit@v1.2.13/internal/sys/safe/model.go (about)

     1  package safe
     2  
     3  import "unsafe"
     4  
     5  // SliceModel slice底层模型
     6  type SliceModel struct {
     7  	Data unsafe.Pointer
     8  	Len  int
     9  	Cap  int
    10  }
    11  
    12  // StringModel string底层模型
    13  type StringModel struct {
    14  	Data unsafe.Pointer
    15  	Len  int
    16  }