-/* Retrieve the full uncompressed data of a WIM resource specified as a raw
- * `wim_reshdr' and the corresponding WIM file. A large enough hold the data is
- * allocated and returned in @buf_ret. */
-int
-wim_reshdr_to_data(const struct wim_reshdr *reshdr, WIMStruct *wim, void **buf_ret)
-{
- DEBUG("offset_in_wim=%"PRIu64", size_in_wim=%"PRIu64", "
- "uncompressed_size=%"PRIu64,
- reshdr->offset_in_wim, reshdr->size_in_wim,
- reshdr->uncompressed_size);
-
- struct wim_resource_spec rspec;
- wim_res_hdr_to_spec(reshdr, wim, &rspec);
- return wim_resource_spec_to_data(&rspec, buf_ret);
-}
-