How do I clear the contents of a BYTE buffer? Like with registers, I can just xor register, register
Apologies for such a simple question,
-brixton
invoke RtlZeroMemory........................
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/Kernel_r/hh/Kernel_r/k109_63d9f0fb-d698-4707-9018-de2fa851a94b.xml.asp
:U
Looks great, thanks, perfect, amazing, yeah!
Is there any other way of doing it though, except a small loop moving 0 to each BYTE PTR?
Actually I suppose I'm just being greedy now :lol
Yes ,there is a third way, you separating the whole array on dwords and using DWORD PTR ,it's mutch more faster than a BYTE PTR loop.
brixton,
Usual trick is unless you need to zero fill the entire string, just write a zero to the first location and its a zero length string that you can write to.
Thanks for all the replies, and yes hutch--, I did that and it suits my needs for this particular project. Thanks! :bg :U