Mojo function
memset
memset(ptr: LegacyUnsafePointer[type, address_space=address_space, origin=origin], value: UInt8, count: Int)
Fills memory with the given value.
Args:
- โptr (
LegacyUnsafePointer): UnsafePointer to the beginning of the memory block to fill. - โvalue (
UInt8): The value to fill with. - โcount (
Int): Number of elements to fill (in elements, not bytes).
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!