示例#1
0
        public void SetUp()
        {
            var fileName    = "TestCompressStreamWithLZ4ToolsAndLoadWithLZ4Stream.txt";
            var fileNameLZ4 = STR_Lz4;
            var content     = "test test test testtesttesttesttesttesttesttesttest test";

            File.WriteAllText(fileName, content);
            CompressWithCommandLineTools(fileNameLZ4, fileName);
            using (var fs = new FileStream(STR_Lz4, FileMode.Open))
            {
                LZ4FileFormatReader reader = new LZ4FileFormatReader();
                info      = reader.ReadHeader(fs);
                chunkInfo = reader.ReadChunkHeader(fs);
            }
        }
示例#2
0
 public void SetUp()
 {
     info      = new LZ4FileHeaderInfo();
     chunkInfo = new LZ4HeaderChunkInfo();
 }