function
memset
memset[type: DType, address_space: AddressSpace](ptr: DTypePointer[type, address_space], value: SIMD[uint8, 1], count: Int)
Fills memory with the given value.
Parameters:
- type (
DType
): The element dtype. - address_space (
AddressSpace
): The address space of the pointer.
Args:
- ptr (
DTypePointer[type, address_space]
): Pointer to the beginning of the memory block to fill. - value (
SIMD[uint8, 1]
): The value to fill with. - count (
Int
): Number of elements to fill (in elements, not bytes).
memset[type: AnyRegType, address_space: AddressSpace](ptr: LegacyPointer[type, address_space], value: SIMD[uint8, 1], count: Int)
Fills memory with the given value.
Parameters:
- type (
AnyRegType
): The element dtype. - address_space (
AddressSpace
): The address space of the pointer.
Args:
- ptr (
LegacyPointer[type, address_space]
): Pointer to the beginning of the memory block to fill. - value (
SIMD[uint8, 1]
): The value to fill with. - count (
Int
): Number of elements to fill (in elements, not bytes).