/** Compressed resources in the WIM use XPRESS compression. */
WIMLIB_COMPRESSION_TYPE_XPRESS = 2,
+
+ /** TODO */
+ WIMLIB_COMPRESSION_TYPE_LZMS = 3,
};
/** @} */
*/
uint32_t is_missing : 1;
- uint32_t reserved_flags : 27;
- uint64_t reserved[4];
+ uint32_t is_partial : 1;
+
+ uint32_t reserved_flags : 26;
+
+ uint64_t raw_resource_offset_in_wim;
+ uint64_t raw_resource_uncompressed_size;
+ uint64_t raw_resource_compressed_size;
+
+ uint64_t reserved[1];
};
/** A stream of a file in the WIM. */
wimlib_lzx_decompress(const void *compressed_data, unsigned compressed_len,
void *uncompressed_data, unsigned uncompressed_len);
+/**
+ * @ingroup G_compression
+ *
+ * Equivalent to wimlib_lzx_decompress(), except the window size is specified in
+ * @p max_window_size as any power of 2 between 2^15 and 2^21, inclusively, and
+ * @p uncompressed_len may be any size less than or equal to @p max_window_size.
+ */
extern int
wimlib_lzx_decompress2(const void *compressed_data, unsigned compressed_len,
void *uncompressed_data, unsigned uncompressed_len,