This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Decompresses LZ77-compressed data from the given input stream. | |
/// </summary> | |
/// <param name="input">The input stream to read from.</param> | |
/// <returns>The decompressed data.</returns> | |
public static MemoryStream Decompress(Stream input) { | |
BinaryReader reader = new BinaryReader(input); | |
// Check LZ77 type. | |
if (reader.ReadByte() != 0x10) |