public static byte[] Copy(uint value, int count) { var srcArray = BitConverter.GetBytes(value); return(Memory.Copy(srcArray, 0, (sizeof(uint) * count))); }
public static byte[] Copy(byte[] srcArray, int count) { return(Memory.Copy(srcArray, 0, count)); }