[fpc-pascal] dynamic array contents and system.move

cobines cobines at gmail.com
Sat Apr 24 21:05:00 CEST 2010


2010/4/24 David Emerson <dle3ab at angelbase.com>:
> move (src.f_data, self.f_data, length(self.f_data) * sizeof(byte));
>

I think it should be:

SetLength(self.f_data, length(src.f_data));
move (src.f_data[0], self.f_data[0], length(self.f_data) * sizeof(byte));

--
cobines



More information about the fpc-pascal mailing list