- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for Size_ (0.14 sec)
-
src/runtime/cgocheck.go
at := (*arraytype)(unsafe.Pointer(typ)) for i := uintptr(0); i < at.Len; i++ { if off < at.Elem.Size_ { cgoCheckUsingType(at.Elem, src, off, size) } src = add(src, at.Elem.Size_) skipped := off if skipped > at.Elem.Size_ { skipped = at.Elem.Size_ } checked := at.Elem.Size_ - skipped off -= skipped if size <= checked { return } size -= checked }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 09 04:07:57 UTC 2024 - 7.6K bytes - Viewed (0) -
src/runtime/checkptr.go
} // Check that (*[n]elem)(p) doesn't straddle multiple heap objects. // TODO(mdempsky): Fix #46938 so we don't need to worry about overflow here. if checkptrStraddles(p, n*elem.Size_) { throw("checkptr: converted pointer straddles multiple allocations") } } // checkptrStraddles reports whether the first size-bytes of memory // addressed by ptr is known to straddle more than one Go allocation.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:18:55 UTC 2024 - 3.6K bytes - Viewed (0) -
src/runtime/export_debug_test.go
return nil, plainError("args must be a pointer or nil") } argp := a.data var argSize uintptr if argp != nil { argSize = (*ptrtype)(unsafe.Pointer(a._type)).Elem.Size_ } h := new(debugCallHandler) h.gp = gp // gp may not be running right now, but we can still get the M // it will run on since it's locked. h.mp = gp.lockedm.ptr()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 15:41:45 UTC 2024 - 5.1K bytes - Viewed (0)