Documentation ¶
Overview ¶
Facilitating memory & pointer operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CmpNBytes ¶
Returns true if both bytes arrays of size `n`, pointed by p1 & p2 are equal. ptr.CmpBitsAs[[n]uint8](p1,p2) is safe & static alternive for this function.
func Offset ¶
func Offset[T any, I constraints.Integer](ptr *T, offset I) *T
Uses `unsafe.Pointer` & `unsafe.Add` to return
pointer `ptr` offset with `offset` .
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.