]> wimlib.net Git - wimlib/blobdiff - src/resource.c
Add extract_full_stream_to_fd()
[wimlib] / src / resource.c
index e71668d78095a1fcdd8beb30e2470c22775a21d3..f61ecd5ac209c457fbb6d59b1324b62557d15fca 100644 (file)
@@ -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)