public Result readStream(Stream s) { var result = new Result { stream = s }; var root = RootEntry.Read(s); if (root == null) { throw new Exception("root is null ERROR !!!!!!!!!!!!!!!"); } root.SetInMemoryFields(); result.root = root; return(result); }
public Result readLZ4NStream(Stream s) { var xFs = new Lz4DecompressionStream(s); var result = new Result { stream = xFs }; var root = RootEntry.Read(xFs); if (root == null) { throw new Exception("root is null ERROR !!!!!!!!!!!!!!!"); } root.SetInMemoryFields(); result.root = root; return(result); }