Documentation ¶
Overview ¶
Facilitating memory & pointer operations.
Index ¶
- func Cmp128Bits[T1, T2 any](p1 *T1, p2 *T2) bool
- func Cmp16Bits[T1, T2 any](p1 *T1, p2 *T2) bool
- func Cmp32Bits[T1, T2 any](p1 *T1, p2 *T2) bool
- func Cmp64Bits[T1, T2 any](p1 *T1, p2 *T2) bool
- func Cmp8Bits[T1, T2 any](p1 *T1, p2 *T2) bool
- func CmpBitsAs[CT comparable, T1, T2 any](p1 *T1, p2 *T2) bool
- func InRange[T any](val, leftInclusiveBound, rightInclusiveBound *T) bool
- func NewUintptr[T any](val *T) uintptr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cmp128Bits ¶
Equivalent to: CmpBitsAs[[2]uint64](p1, p2)
func CmpBitsAs ¶
func CmpBitsAs[CT comparable, T1, T2 any](p1 *T1, p2 *T2) bool
Compares values pointed by `p1` & `p2`, as if they were values of type CT, using equality operator.
If `InT` is smaller in memory than `CT`, function will deliberately fail to compile during linkage.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.