TigerEmu/Utils/ByteUtils.cs

11 lines
300 B
C#

namespace Tiger.Utils;
public static class ByteUtils
{
public static byte[] CopyArray(byte[] source, int sourceIndex, int amountBytes)
{
var destination = new byte[amountBytes];
Array.Copy(source, sourceIndex, destination, 0, amountBytes);
return destination;
}
}