Beispiel #1
0
        private byte[] ReadSegment(SegmentHeader Header, Stream Input)
        {
            long End = Input.Position + Header.CompressedSize;

            Input.Seek(End, SeekOrigin.Begin);

            byte[] Data = BackwardsLz.Decompress(Input, Header.DecompressedSize);

            Input.Seek(End, SeekOrigin.Begin);

            return(Data);
        }
Beispiel #2
0
        private byte[] ReadSegment(SegmentHeader header, Stream input)
        {
            long end = input.Position + header.CompressedSize;

            input.Seek(end, SeekOrigin.Begin);

            byte[] data = BackwardsLz.Decompress(input, header.DecompressedSize);

            input.Seek(end, SeekOrigin.Begin);

            return(data);
        }