13 lines
400 B
C#
13 lines
400 B
C#
|
using System;
|
||
|
|
||
|
namespace chestcrypto{
|
||
|
internal class ByteCombiner{
|
||
|
internal static byte[] Combine(byte[] first, byte[] second)
|
||
|
{
|
||
|
byte[] bytes = new byte[first.Length + second.Length];
|
||
|
Buffer.BlockCopy(first, 0, bytes, 0, first.Length);
|
||
|
Buffer.BlockCopy(second, 0, bytes, first.Length, second.Length);
|
||
|
return bytes;
|
||
|
}
|
||
|
}
|
||
|
}
|