velvia/compressed-vec

Expected behaviour?

sivad77 opened this issue · 0 comments

Hello,

use compressed_vec::VectorU64Appender;
use compressed_vec::VectorReader;

let data: Vec = (0..100000).collect();
let mut appender = VectorU64Appender::try_new(data.len()).unwrap();
let result = appender.encode_all(data.clone()).unwrap();
let reader = VectorReader::::try_new(&result[..]).unwrap();
let result: Vec = reader.iterate().collect();
assert_eq!(data, result);

, above data and result are not equal.