첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170
using System;

Random random = new Random(DateTime.Now.Millisecond);

byte[] sourceArray1 = new byte[1000000];
byte[] sourceArray2 = new byte[1000000];
byte[] sourceArray3 = new byte[1000000];
byte[] targetArray  = new byte[3000000];

for(int i = 0; i < 1000000; i++)
{
    sourceArray1[i] = (byte)random.Next(0, 255);
    sourceArray2[i] = (byte)random.Next(0, 255);
    sourceArray3[i] = (byte)random.Next(0, 255);
}

Buffer.BlockCopy(sourceArray1, 0, targetArray, 0                                        , sourceArray1.Length);
Buffer.BlockCopy(sourceArray2, 0, targetArray, sourceArray1.Length                      , sourceArray2.Length);
Buffer.BlockCopy(sourceArray3, 0, targetArray, sourceArray1.Length + sourceArray2.Length, sourceArray3.Length);
728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요