title: Equivalent of C++'s sizeof(uint64Array) in C#?
body: <p>On this code : <a href="http://prng.di.unimi.it/xoshiro256plus.c" rel="nofollow noreferrer">http://prng.di.unimi.it/xoshiro256plus.c</a>
  They do this :</p>
  
  <pre><code>static const uint64_t JUMP[] = { 0x180ec6d33cfd0aba, 0xd5a61266f0c9392c, 0xa9582618e03fc9aa, 0x39abdc4529b1661c };
  
   for(int i = 0; i &lt; sizeof JUMP / sizeof *JUMP; i++)
  </code></pre>
  
  <p>What does <strong>sizeof JUMP / sizeof *JUMP</strong> means and how to port it to c# ?</p>
  
  <p><strong>sizeof JUMP</strong> seems to be <strong>Marshal.Sizeof(JUMP)</strong> according to
  <a href="https://docs.microsoft.com/fr-fr/dotnet/api/system.runtime.interopservices.marshal.sizeof?view=netframework-4.8" rel="nofollow noreferrer">https://docs.microsoft.com/fr-fr/dotnet/api/system.runtime.interopservices.marshal.sizeof?view=netframework-4.8</a></p>
  
  <p>But Marshal.Sizeof(*JUMP) cant be donne in safe mode and I cant use unsafe code.</p>
  
  <p>And according to this page : <a href="https://en.cppreference.com/w/cpp/language/sizeof" rel="nofollow noreferrer">https://en.cppreference.com/w/cpp/language/sizeof</a> <strong>sizeof JUMP / sizeof *JUMP</strong> return array's length.
  So why not just put 4 instead as JUMP length is known ?</p>
  
  <p>Thank.</p>