Re: [fpc-pascal] BlockWrite of dynamic arrays

2017-07-30 Thread Sven Barth via fpc-pascal
Am 30.07.2017 08:21 schrieb "Bo Berglund" : > 3) Change the BlockWrite command from > BlockWrite(F, Buffer[1], Length(Buffer)); > to > BlockWrite(F, Buffer, Length(Buffer)); > > Note that I would like to *not* specify the index of the first element > of the array so that the same code can work for

[fpc-pascal] BlockWrite of dynamic arrays

2017-07-29 Thread Bo Berglund
I am converting older code to move from AnsiString to TBytes as non-text data container. While doing it I am using conditionals so I don't destroy the working code until I have verified that the TBytes usage is OK. Now I have encountered use of BlockWrite where I would like to do the following: 1