Hi, can somebody explain me how to use "RtlZeroMemory" ?
Can somebody give me some x-sampels ?
GreetZ
Can somebody give me some x-sampels ?
GreetZ
buffer db 256 <?>
invoke RtlZeroMemory, ADDR buffer, 256
I do it like that :s
invoke RtlZeroMemory, ADDR buffer, 256
I do it like that :s
What happens while calling the funktion ???
thx
thx
I call it to clear the memory
uktra thanks !
Is it faster than loop that fills memory with zeros ???
everything okay ! TANKS !
Is it faster than loop that fills memory with zeros ???
Quick guess: no. It involves a call, and adjusting of stack space. Hence, it's probably somewhat slower. It does however clean up your code to use it, and if it's something you do many times, you either get a lot extra code, or have to code a sub yourself.
Fake
There were efficient zero memory and memory fills algorithms and implementations posted in the board in the past... one can use those for time critical purposes : otherwise RtlZeroMemory is reliable and fast enough for most uses.