title: Pass static byte array in parameter in Delphi
body: <p>I have a static array:</p>
  
  <pre><code>myArray: array [0..15] of byte;
  </code></pre>
  
  <p>I wish to pass this array (not a copy of the array) into a function. Inside the function, I will manipulate the data in array.</p>
  
  <p>Different lengths of STATIC byte array may be passed in to Init at different times. Therefore, I do not wish to declare Init to be able to receive only a certain length of byte array. (e.g. in this case it is a 16 bytes. At other times it may be 65000 bytes)</p>
  
  <p>This is the way I used the function:</p>
  
  <pre><code>Init(@myArray[0]); //passing in pointer to static array
  </code></pre>
  
  <p>I tried to declare Init like this:</p>
  
  <pre><code>procedure Init(x: array of byte);
  begin
  //Do some stuff with x, for e.g.
  Length(x);  //I do not intend to pass in the length as a parameter, 
              //but determine it in this function itself.  
  
  
  end;
  </code></pre>
  
  <p>Is this also a correct way of declaring the Init function parameter?</p>