public byte[] DecompressSection() { byte[] compressed = new byte[CompressedSize]; OpenSection().Read(0, compressed).ThrowIfFailure(); if (IsCompressed) { return(Lz4.Decompress(compressed, (int)DecompressedSize)); } else { return(compressed); } }
public byte[] DecompressSection() { var compressed = new byte[CompressedSize]; OpenSection().Read(compressed, 0); if (IsCompressed) { return(Lz4.Decompress(compressed, (int)DecompressedSize)); } else { return(compressed); } }