这是我的代码:
              long max = pcmU16.Length;
              long index = 0;
              fixed (ushort* srcFix = pcmU16)
              {
                    ushort* src = srcFix;
                    next:
                    *src = 32768;
                    src++;
                    index++;
                    if (index != max)
                    {
                          goto next;
                    }
              }
如您所见,它一次写入 2 个字节。如何使用 ulong 类型一次写入 8 个字节?pcmU16 是 ushort[] 数组。