Documentation ¶
Index ¶
- func GetArrayElem[T any](array unsafe.Pointer, index int, elemSize uintptr) T
- func GetArrayElemRef(array unsafe.Pointer, index int, elemSize uintptr) unsafe.Pointer
- func GetArrayPointer[T any](elements []T) unsafe.Pointer
- func GetLen[T any](elements []T) int
- func GetSliceHeader[T any](elements []T) *reflect.SliceHeader
- func GetSliceHeaderByRef(elements unsafe.Pointer) *reflect.SliceHeader
- func GetTypeSize[T any]() uintptr
- func InHeap[T any](t *T) bool
- func Noescape[T any](t *T) *T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetArrayElem ¶
GetArrayElem returns an element by index from the array referenced by an unsafe pointer
func GetArrayElemRef ¶
GetArrayElemRef returns an element's pointer by index from the array referenced by an unsafe pointer
func GetArrayPointer ¶
GetArrayPointer retrieves the pointer of a slice underlying array
func GetSliceHeader ¶
func GetSliceHeader[T any](elements []T) *reflect.SliceHeader
GetSliceHeader retrieves the SliceHeader of elements
func GetSliceHeaderByRef ¶
func GetSliceHeaderByRef(elements unsafe.Pointer) *reflect.SliceHeader
GetSliceHeaderByRef retrieves the SliceHeader of elements by an unsafe pointer
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.