package runtime
import (
)
func ( unsafe.Pointer, int) {
if < 0 {
panicunsafestringlen()
}
if uintptr() > -uintptr() {
if == nil {
panicunsafestringnilptr()
}
panicunsafestringlen()
}
}
func ( unsafe.Pointer, int64) {
:= int()
if int64() != {
panicunsafestringlen()
}
unsafestring(, )
}
func ( unsafe.Pointer, int64) {
unsafestring64(, )
if checkptrStraddles(, uintptr()) {
throw("checkptr: unsafe.String result straddles multiple allocations")
}
}
func () {
panic(errorString("unsafe.String: len out of range"))
}
func () {
panic(errorString("unsafe.String: ptr is nil and len is not zero"))
}
func ( *_type, unsafe.Pointer, int) {
if < 0 {
panicunsafeslicelen1(sys.GetCallerPC())
}
if .Size_ == 0 {
if == nil && > 0 {
panicunsafeslicenilptr1(sys.GetCallerPC())
}
}
, := math.MulUintptr(.Size_, uintptr())
if || > -uintptr() {
if == nil {
panicunsafeslicenilptr1(sys.GetCallerPC())
}
panicunsafeslicelen1(sys.GetCallerPC())
}
}
func ( *_type, unsafe.Pointer, int64) {
:= int()
if int64() != {
panicunsafeslicelen1(sys.GetCallerPC())
}
unsafeslice(, , )
}
func ( *_type, unsafe.Pointer, int64) {
unsafeslice64(, , )
if checkptrStraddles(, uintptr()*.Size_) {
throw("checkptr: unsafe.Slice result straddles multiple allocations")
}
}
func () {
panicunsafeslicelen1(sys.GetCallerPC())
}
func ( uintptr) {
panicCheck1(, "unsafe.Slice: len out of range")
panic(errorString("unsafe.Slice: len out of range"))
}
func () {
panicunsafeslicenilptr1(sys.GetCallerPC())
}
func ( uintptr) {
panicCheck1(, "unsafe.Slice: ptr is nil and len is not zero")
panic(errorString("unsafe.Slice: ptr is nil and len is not zero"))
}
func ( *_type, unsafe.Pointer, int) {
unsafeslice(, , )
}