Mojo function
memset_zero
memset_zero(ptr: UnsafePointer[type, origin, address_space=address_space], count: Int)
Fills memory with zeros.
Args:
- ptr (
UnsafePointer): UnsafePointer to the beginning of the memory block to fill. - count (
Int): Number of elements to fill (in elements, not bytes).
memset_zero[dtype: DType, //, *, count: Int](ptr: UnsafePointer[Scalar[dtype], origin, address_space=address_space])
Fills memory with zeros.
Parameters:
- dtype (
DType): The element type. - count (
Int): Number of elements to fill (in elements, not bytes).
Args:
- ptr (
UnsafePointer): UnsafePointer to the beginning of the memory block to fill.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!