//----------------------------------------------------------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); }
public static void MemClear(Byte[] dest, int destIndex, int count) { NativeBufferMethods.MemSet(dest, destIndex, 0, count); }
public static void memset(byte[] dest, int destIndex, byte byteValue, int count) { NativeBufferMethods.MemSet(dest, destIndex, byteValue, count); }