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