better (but still bad) vfs solution

This commit is contained in:
Zoe
2024-05-15 23:35:34 -05:00
parent cb5071aa25
commit fdacc74091
11 changed files with 274 additions and 169 deletions

View File

@@ -126,9 +126,7 @@ struct HuffRing {
impl HuffRing {
fn new() -> Self {
let mut data = Vec::with_capacity(32 * 1024);
unsafe {
data.set_len(32 * 1024);
};
data.resize(data.capacity(), 0);
return Self { pointer: 0, data };
}