SteamKit2.CDNClient.ProcessChunk C# (CSharp) Method

ProcessChunk() public static method

Processes a chunk by decrypting and decompressing it.
public static ProcessChunk ( byte chunk, byte depotkey ) : byte[]
chunk byte The chunk to process.
depotkey byte The AES encryption key to use when decrypting the chunk.
return byte[]
        public static byte[] ProcessChunk(byte[] chunk, byte[] depotkey)
        {
            byte[] decrypted_chunk = CryptoHelper.SymmetricDecrypt(chunk, depotkey);
            byte[] decompressed_chunk = ZipUtil.Decompress(decrypted_chunk);

            return decompressed_chunk;
        }