- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for DataChecked (0.11 sec)
-
src/internal/abi/type.go
// cmd/link/internal/ld/decodesym.go type Name struct { Bytes *byte } // DataChecked does pointer arithmetic on n's Bytes, and that arithmetic is asserted to // be safe for the reason in whySafe (which can appear in a backtrace, etc.) func (n Name) DataChecked(off int, whySafe string) *byte { return (*byte)(addChecked(unsafe.Pointer(n.Bytes), uintptr(off), whySafe)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 17 21:09:59 UTC 2024 - 21.8K bytes - Viewed (0) -
src/internal/reflectlite/type.go
return "" } i, l := n.readVarint(1) i2, l2 := n.readVarint(1 + i + l) return unsafe.String(n.data(1+i+l+i2, "non-empty string"), l2) } func pkgPath(n abi.Name) string { if n.Bytes == nil || *n.DataChecked(0, "name flag field")&(1<<2) == 0 { return "" } i, l := n.ReadVarint(1) off := 1 + i + l if n.HasTag() { i2, l2 := n.ReadVarint(off) off += i2 + l2 } var nameOff int32
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 17:01:54 UTC 2024 - 16.2K bytes - Viewed (0)