X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fresource.c;h=f61ecd5ac209c457fbb6d59b1324b62557d15fca;hp=e71668d78095a1fcdd8beb30e2470c22775a21d3;hb=a267f3e6b9df128bd4bdf5d39b951868dd4528ab;hpb=1c08e96f585821ad67c8ff9180e00ddb93f6c051 diff --git a/src/resource.c b/src/resource.c index e71668d7..f61ecd5a 100644 --- a/src/resource.c +++ b/src/resource.c @@ -1323,6 +1323,15 @@ extract_stream_to_fd(struct wim_lookup_table_entry *lte, return extract_stream(lte, size, extract_chunk_to_fd, fd); } +/* Extract the full uncompressed contents of the specified stream to the + * specified file descriptor. */ +int +extract_full_stream_to_fd(struct wim_lookup_table_entry *lte, + struct filedes *fd) +{ + return extract_stream_to_fd(lte, fd, lte->size); +} + /* Calculate the SHA1 message digest of a stream and store it in @lte->hash. */ int sha1_stream(struct wim_lookup_table_entry *lte)