Sha256: c8244640bf021cf50a24d4d1f76b146e1327210e70f985ef57da63eaedeb009b
Contents?: true
Size: 409 Bytes
Versions: 13
Compression:
Stored size: 409 Bytes
Contents
const TEXT: &[u8] = include_bytes!("../assets/example.txt"); #[test] #[should_panic] fn test_issue_182() { use std::io::BufRead; let compressed = zstd::encode_all(TEXT, 3).unwrap(); let truncated = &compressed[..compressed.len() / 2]; let rdr = zstd::Decoder::new(truncated).unwrap(); let rdr = std::io::BufReader::new(rdr); for line in rdr.lines() { line.unwrap(); } }
Version data entries
13 entries across 13 versions & 1 rubygems