[Lazarus] Passing a section of an array to a function.
hdpc at talktalk.net
Mon Sep 10 10:20:04 CEST 2012
On 10/9/12 7:36, Dave Coventry wrote:
> I have an array of Byte which I have loaded from a file.
> I want to process a 100 byte section of the array which starts at
> offset 32 in my array.
> My function (or procedure) is as follows:
> procedure decompress_r(cbuf: array of byte);
> len,i: integer;
> if (cbufand $F0)=$20 then
> len:=cbuf[i]and $7;
There is no looping construct (while or repeat) in your decompress_r
More information about the Lazarus