FRAMEWORK/MemUtils.hpp
//======================================================================================================================
// TODO: Optional maximum hardware supported size operation (Additional loop with __int128(If platform supports it) before loop with PVOID) 
//
Optional maximum hardware supported size operation (Additional loop with __int128(If platform supports it) before loop with PVOID)
Optional maximum hardware supported size operation ( Additional loop with __int128 ( If platform supports it ) before loop with PVOID )
static void CopyMem(PVOID Dst, PVOID Src, UINT Length)   
{
 UINT ALen = Length/sizeof(PVOID);
 UINT BLen = Length%sizeof(PVOID);
 for(UINT ctr=0;ctr < ALen;ctr++)                    ((PVOID*)Dst)[ctr] = ((PVOID*)Src)[ctr];
 for(UINT ctr=(ALen*sizeof(PVOID));ctr < Length;ctr++)((PINT8)Dst)[ctr] = ((PINT8)Src)[ctr];
}
static void CopyMem ( PVOID Dst , PVOID Src , UINT Length ) { UINT ALen = Length / sizeof ( PVOID ) ; UINT BLen = Length % sizeof ( PVOID ) ; for ( UINT ctr = 0 ; ctr < ALen ; ctr ++ ) ( ( PVOID * ) Dst ) [ ctr ] = ( ( PVOID * ) Src ) [ ctr ] ; for ( UINT ctr = ( ALen * sizeof ( PVOID ) ) ; ctr < Length ; ctr ++ ) ( ( PINT8 ) Dst ) [ ctr ] = ( ( PINT8 ) Src ) [ ctr ] ; }
TODO: Optional maximum hardware supported size operation (Additional loop with __int128(If platform supports it) before loop with PVOID)
TODO : Optional maximum hardware supported size operation ( Additional loop with __int128 ( If platform supports it ) before loop with PVOID )
// Allow unaligned memory?      // MoveToLeft  (for Delete operation)