public static byte[] Decompress(byte[] data) { var container = new CompressedContainer(data); var buffer = new DecompressedBuffer(container); return(buffer.Data); }
internal DecompressedBuffer(CompressedContainer container) { foreach (var chunk in container.CompressedChunks) { DecompressedChunks.Add(new DecompressedChunk(chunk)); } }
public static byte[] Compress(byte[] data) { var buffer = new DecompressedBuffer(data); var container = new CompressedContainer(buffer); return(container.SerializeData()); }