title: Pass byte array from Unity C# to C++ plugin
body: <p>I'm trying to pass raw texture data from Texture2D (byte array) to unmanaged C++ code. In C# code array length is about 1,5kk, however in C++ 'sizeof' always returns 8.</p>
  
  <p>C# declaration of native method :</p>
  
  <pre><code>[DllImport("LibName", CallingConvention = CallingConvention.Cdecl)]
  static extern IntPtr ProcessData(byte[] data);
  </code></pre>
  
  <p>C++:</p>
  
  <pre><code>extern "C" {
      __declspec(dllexport) void ProcessData(uint8_t *data) {
          //sizeof(data) is always 8
      }
  }
  </code></pre>
  
  <p>What am I doing wrong? Is there is a way to pass array without additional memory allocation in C++ code?</p>