H hgu Unregistered / Unconfirmed GUEST, unregistred user! 2000-03-20 #1 Delphi中如何在两个内存块间快速拷贝数据,我知道可以一字节一字节赋值,但我希望快速,有否类Turbo C的 MoveData?另外,汇编中是否有一个MOVSB,不知如何用法,是否也能达到此功能?
沈 沈前卫 Unregistered / Unconfirmed GUEST, unregistred user! 2000-03-20 #3 procedure Move(const Source; var Dest; Count: Integer); Description Move copies Count bytes from Source to Dest. No range checking is performed. Move compensates for overlaps between the source and destination blocks. Whenever possible, use SizeOf to determine the count.
procedure Move(const Source; var Dest; Count: Integer); Description Move copies Count bytes from Source to Dest. No range checking is performed. Move compensates for overlaps between the source and destination blocks. Whenever possible, use SizeOf to determine the count.