]> wimlib.net Git - wimlib/blobdiff - src/lz_sarray.c
Add wimlib_get_compressor_needed_memory()
[wimlib] / src / lz_sarray.c
index ffffcd1688bb789a355e6fec09cac1b394e2f7a0..b880f9cc45f1195cc7559e8985ac7271604b22cf 100644 (file)
@@ -377,6 +377,12 @@ lz_sarray_init(struct lz_sarray *mf,
        return true;
 }
 
+u64
+lz_sarray_get_needed_memory(input_idx_t max_window_size)
+{
+       return (u64)6 * sizeof(input_idx_t) * max_window_size;
+}
+
 /*
  * Prepare the suffix array match-finder to scan the specified window for
  * matches.