Documentation ¶
Overview ¶
Package mem declares functions for allocating memory that is aligned to specific byte boundaries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Alloc32Align ¶
func Alloc32Align[T any]() *T
Alloc32Align returns a pointer to a value of type T that is aligned to 32 bytes. The returned pointer may point to additional unused memory to ensure alignment.
func Alloc64Align ¶
func Alloc64Align[T any]() *T
Alloc64Align returns a pointer to a value of type T that is aligned to 64 bytes. The returned pointer may point to additional unused memory to ensure alignment.
func Alloc64ByteAligned ¶
Alloc64ByteAligned returns a byte slice of the specified size that is aligned to 64 bytes. The returned slice may have additional unused capacity to ensure alignment.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.