title: C# to VB.net Byte Conversions
body: <p>I'm trying to use some code from the Opus project in VB.net, it was originally written for C, but I am integrating it into another application...</p>
  
  <pre><code>    byte[] _notEncodedBuffer = new byte[0];
  
      byte[] soundBuffer = new byte[e.BytesRecorded + _notEncodedBuffer.Length];
  </code></pre>
  
  <p>I'm not sure how these should be translated into VB.net, I have translated all the code but this and am getting good results, just not entirely sure on these, had all kinds of errors with my attempts, including Identifier expected, Bracket identifier missing etc! :(</p>
  
  <pre><code>    Dim wavNEB As Byte() = New Byte [0]
  
      Dim wavSnd As Byte() = New Byte [e.BytesRecorded + wavNEB.Length]
  </code></pre>
  
  <p>That was my last attempt, but no cigar!</p>
  
  <p>Any help much appreciated, I rarely have to break VB or C out so it's not a strong point...</p>