I use the following CopyMemory call to copy 4 bytes.
CopyMemory ByVal VarPtr(Dest), ByVal VarPtr(Src), 4
The variables' addresses are guaranteed to be at 32-bits boundaries (resp., 64 bits).
The CPU certainly is faster to copy 32 bits once than to iterate 4 times through a bytes sequence.
Question: Is there any 32 bits CopyMemory API function such as:
CopyMemoryWord ByVal VarPtr(Dest), ByVal VarPtr(Src)
?
CopyMemory ByVal VarPtr(Dest), ByVal VarPtr(Src), 4
The variables' addresses are guaranteed to be at 32-bits boundaries (resp., 64 bits).
The CPU certainly is faster to copy 32 bits once than to iterate 4 times through a bytes sequence.
Question: Is there any 32 bits CopyMemory API function such as:
CopyMemoryWord ByVal VarPtr(Dest), ByVal VarPtr(Src)
?