//----------------------------------------------------------filling_rule_e

        public static void memcpy(byte[] dest,
                                  int destIndex, byte[] source,
                                  int sourceIndex, int count)
        {
            NativeBufferMethods.MemCopy(dest, destIndex, source, sourceIndex, count);
            //#if USE_UNSAFE
            //#else

            //            for (int i = 0; i < count; i++)
            //            {
            //                dest[destIndex + i] = source[sourceIndex + i];
            //            }
            //#endif
        }
 public void Clear(byte b)
 {
     //clear with zero
     NativeBufferMethods.MemSet(this.mmm, 0, b, totalAllocSize);
 }
Exemple #3
0
 public static void MemClear(Byte[] dest, int destIndex, int count)
 {
     NativeBufferMethods.MemSet(dest, destIndex, 0, count);
 }
Exemple #4
0
 public static void memset(byte[] dest, int destIndex, byte byteValue, int count)
 {
     NativeBufferMethods.MemSet(dest, destIndex, byteValue, count);
 }