I see. So effectively, inc(p) gets translated to inc(p,4) by the
compiler.
Ross.
Message
From: "David J Taylor" <david-taylor (AT) blueyonder (DOT) co.uk>
To: "Borland's Delphi Discussion List" <delphi (AT) elists (DOT) org>
Sent: Monday, November 07, 2005 11:27 PM
Subject: Re: Test memory block
Ross Levis wrote:
[]
I had to activate this thread again as I'm not convinced that inc(p)
will increment 4 bytes at a time. I'm thinking that p^ will access 4
bytes, but inc(p) will only increment 1 byte of the block, and then
access the same 3 bytes overlapped plus 1 new byte. am I wrong?
I think it will need to be inc(p,4) ?
If p is typed as ^Longword it will be incremented 4 bytes at a time. If
as ^byte, then one byte at a time.
David
Delphi mailing list -Delphi (AT) elists (DOT) org