Git.Core.ObjectStore.AddZlibSignature C# (CSharp) Method

AddZlibSignature() private static method

Problem: in order to compress with Zlib(C Git deflate library) we must add 2 bytes at the begining of this, those represent the type of algorithm used, it just simple extra data that just confused me for a while
private static AddZlibSignature ( byte data ) : byte[]
data byte /// A ///
return byte[]
        private static byte[] AddZlibSignature(byte[] data)
        {
            List<byte> list = new List<byte> (data);

            list.Insert (0, ZlibFirstByte);
            list.Insert (1, ZlibSecondByte);

            return list.ToArray ();
        }