Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CastIntPointer ¶
CastIntPointer returns ptr's value as int64, the underlying value is cast to int64 using unsafe tricks according kind.
If ptr is not pointed to an integer or kind does not match ptr, the behavior is undefined, it may panic or return incorrect value.
func IdentifyPanic ¶ added in v2.3.5
IdentifyPanic reports the panic location when a panic happens.
func NextPowerOfTwo ¶
func UnpackSlice ¶
func UnpackSlice(slice any) unsafeheader.Slice
UnpackSlice unpacks the given slice interface{} to unsafeheader.Slice.
Types ¶
type EmptyInterface ¶
EmptyInterface is the header for an interface{} value. It's a copy type of runtime.eface.
func EFaceOf ¶
func EFaceOf(ep *any) *EmptyInterface
EFaceOf casts the empty interface{} pointer to an EmptyInterface pointer.
Directories ¶
Path | Synopsis |
---|---|
Package constraints defines a set of useful constraints to be used with type parameters.
|
Package constraints defines a set of useful constraints to be used with type parameters. |
Package unsafeheader contains header declarations for the Go runtime's slice and string implementations.
|
Package unsafeheader contains header declarations for the Go runtime's slice and string implementations. |
Click to show internal directories.
Click to hide internal directories.