Esempio n. 1
0
        //----------------------------------------------------------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
        }
Esempio n. 2
0
 public void Clear(byte b)
 {
     //clear with zero
     NativeBufferMethods.MemSet(this.mmm, 0, b, totalAllocSize);
 }
Esempio n. 3
0
 public static void MemClear(Byte[] dest, int destIndex, int count)
 {
     NativeBufferMethods.MemSet(dest, destIndex, 0, count);
 }
Esempio n. 4
0
 public static void memset(byte[] dest, int destIndex, byte byteValue, int count)
 {
     NativeBufferMethods.MemSet(dest, destIndex, byteValue, count);
 }