aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics/VDec/DecoderHelper.cs
blob: 4f17d8d109b77ad56fb3f4f6b8e9f045d425a653 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using System;

namespace Ryujinx.Graphics.VDec
{
    static class DecoderHelper
    {
        public static byte[] Combine(byte[] arr0, byte[] arr1)
        {
            byte[] output = new byte[arr0.Length + arr1.Length];

            Buffer.BlockCopy(arr0, 0, output, 0, arr0.Length);
            Buffer.BlockCopy(arr1, 0, output, arr0.Length, arr1.Length);

            return output;
        }
    }
}