John Dammeyer wrote:
> The second part of your test looks at the last 3 bytes of a longword.
First, I believe it checks up to the first 3 bytes of the buffer which
you've already looked at. Minor glitch.
Oops, yes this should be:
for i := (Size32 shl 2) to BufferSize -1 do
if Buffer8[i] <> 0 then // test remaining 1,2, or 3 bytes
Exit;
But I see your point on the extra multiplication and addition. It may
look tidier but is not quite as fast.
Regards,
Ross.
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi