Re: [Lazarus] Dangers of using Move command to insert data into a TBytes array?

2017-08-31 Thread Bo Berglund via Lazarus
On Wed, 30 Aug 2017 09:48:47 +0200 (CEST), Michael Van Canneyt via Lazarus wrote: >> I must use Move() for handling other data of various kinds like packed >> records and such too... > >If the packed records contain managed data (ansistrings and the like): >Don't

Re: [Lazarus] Dangers of using Move command to insert data into a TBytes array?

2017-08-30 Thread Michael Van Canneyt via Lazarus
On Wed, 30 Aug 2017, Bo Berglund via Lazarus wrote: I just want to check with you which way is safer when using Move() commands in a procedure to combine two TBytes arrays by inserting one into the other at a specified point. What I need to do is the following: - Increase the size of the