Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }