TigerEmu/Utils/ByteUtils.cs

11 lines
300 B
C#
Raw Normal View History

2023-09-23 11:11:07 +00:00
namespace Tiger.Utils;
public static class ByteUtils
{
2023-11-10 13:55:42 +00:00
public static byte[] CopyArray(byte[] source, int sourceIndex, int amountBytes)
2023-09-23 11:11:07 +00:00
{
2023-11-10 13:55:42 +00:00
var destination = new byte[amountBytes];
Array.Copy(source, sourceIndex, destination, 0, amountBytes);
return destination;
2023-09-23 11:11:07 +00:00
}
}